Archived
renamed TextCommand to ChatCommand
This commit is contained in:
1 parent
b7bdbf3977
commit
47ec47338c
7 files changed
+33
-33
No files matched your search
@@ -1,12 +1,12 @@
|
||||
import { Client, CommandInteraction, GuildMember, Intents, Message } from "discord.js";
|
||||
import { EventEmitter } from "events";
|
||||
import * as http from "http";
|
||||
import { TextCommand } from "./TextCommand.js";
|
||||
import { ChatCommand } from "./ChatCommand.js";
|
||||
import { CommandManager } from "../managers/CommandManager.old.js";
|
||||
import { OperationSuccess, PermissionsError } from "../errors.js";
|
||||
import { HelpMessage } from "./Help.js";
|
||||
import { SystemMessageManager } from "../managers/SystemMessage.js";
|
||||
import { CommandMessageStructure } from "../types/TextCommand.js";
|
||||
import { CommandMessageStructure } from "../types/ChatCommand.js";
|
||||
import { InitOptions } from "../types/Bot.js";
|
||||
import { HelpMessageParams } from "../types/HelpMessage.js";
|
||||
import { applicationState } from "../state.js";
|
||||
@@ -138,7 +138,7 @@ export class Bot extends EventEmitter {
|
||||
console.log("✔");
|
||||
}
|
||||
if (this.messages.help.enabled === true) {
|
||||
const helpMsg: TextCommand = new HelpMessage(this.commands, this.messages.help, this.name);
|
||||
const helpMsg: ChatCommand = new HelpMessage(this.commands, this.messages.help, this.name);
|
||||
this.commands.add(helpMsg);
|
||||
}
|
||||
applicationState.running = true;
|
||||
|
||||
Reference in new issue
Block a user