diff --git a/src/Bot.ts b/src/Bot.ts index 2153a89..ecfbfc0 100644 --- a/src/Bot.ts +++ b/src/Bot.ts @@ -132,6 +132,7 @@ export class Bot extends EventEmitter { const helpMsg: Command = new HelpMessage(this.commands, this.messages.help, this.name); this.commands.add(helpMsg); } + Object.freeze(this.commands); process.stdout.write("Connecting to Discord... "); this.client.login(this.token); this.client.on("ready", async () => {