tweaked to only freeze the list

This commit is contained in:
mmacierzanka committed 2021-08-31 18:47:57 +02:00
1 parent 6c687d5a2e
commit 40eb4b35da
1 file changed
+1 -1
+1 -1
View File
@@ -132,7 +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);
Object.freeze(this.commands.list);
process.stdout.write("Connecting to Discord... ");
this.client.login(this.token);
this.client.on("ready", async () => {