Archived
fixed minor errors
This commit is contained in:
1 parent
9ead13cbd7
commit
a636960957
2 files changed
+5
-8
No files matched your search
+2
-6
@@ -1,11 +1,7 @@
|
|||||||
//IMPORTS
|
//IMPORTS
|
||||||
import { Client, ClientOptions, Message } from "discord.js";
|
import { Client, ClientOptions, Message } from "discord.js";
|
||||||
import {
|
import { Command, CommandManager, CommandMessageStructure } from "./Command.js";
|
||||||
Command,
|
import { PermissionsError } from "./Error.js";
|
||||||
CommandManager,
|
|
||||||
CommandMessageStructure,
|
|
||||||
PermissionsError,
|
|
||||||
} from "./Command.js";
|
|
||||||
import { HelpMessage, HelpMessageParams } from "./Help.js";
|
import { HelpMessage, HelpMessageParams } from "./Help.js";
|
||||||
import * as http from "http";
|
import * as http from "http";
|
||||||
import { SystemMessageManager } from "./SystemMessage.js";
|
import { SystemMessageManager } from "./SystemMessage.js";
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ import {
|
|||||||
TextChannel,
|
TextChannel,
|
||||||
User,
|
User,
|
||||||
} from "discord.js";
|
} from "discord.js";
|
||||||
import { Command, PermissionsError } from "./Command.js";
|
import { Command } from "./Command.js";
|
||||||
|
import { PermissionsError } from "./Error.js";
|
||||||
|
|
||||||
export type MessageType = "PERMISSION" | "ERROR" | "NOT_FOUND";
|
export type MessageType = "PERMISSION" | "ERROR" | "NOT_FOUND";
|
||||||
export interface SystemMessageAppearance {
|
export interface SystemMessageAppearance {
|
||||||
@@ -95,7 +96,7 @@ export class SystemMessageManager {
|
|||||||
if (data.error) {
|
if (data.error) {
|
||||||
if (
|
if (
|
||||||
data.error instanceof Error ||
|
data.error instanceof Error ||
|
||||||
data.error instanceof PermissionsError
|
(data.error as any) instanceof PermissionsError
|
||||||
) {
|
) {
|
||||||
embed.addField(
|
embed.addField(
|
||||||
"Error details:",
|
"Error details:",
|
||||||
|
|||||||
Reference in new issue
Block a user