fixed minor errors

This commit is contained in:
mmacierzanka committed 2021-08-02 22:07:25 +02:00
1 parent 9ead13cbd7
commit a636960957
2 files changed
+5 -8

No files matched your search

+2 -6
View File
@@ -1,11 +1,7 @@
//IMPORTS
import { Client, ClientOptions, Message } from "discord.js";
import {
Command,
CommandManager,
CommandMessageStructure,
PermissionsError,
} from "./Command.js";
import { Command, CommandManager, CommandMessageStructure } from "./Command.js";
import { PermissionsError } from "./Error.js";
import { HelpMessage, HelpMessageParams } from "./Help.js";
import * as http from "http";
import { SystemMessageManager } from "./SystemMessage.js";
+3 -2
View File
@@ -8,7 +8,8 @@ import {
TextChannel,
User,
} 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 interface SystemMessageAppearance {
@@ -95,7 +96,7 @@ export class SystemMessageManager {
if (data.error) {
if (
data.error instanceof Error ||
data.error instanceof PermissionsError
(data.error as any) instanceof PermissionsError
) {
embed.addField(
"Error details:",