fixed not found message not firing and added some minor changes

This commit is contained in:
mmacierzanka committed 2021-09-07 20:30:51 +02:00
1 parent 3004787cf0
commit 1e2966dfa9
4 files changed
+21 -7

No files matched your search

+1 -1
View File
@@ -236,7 +236,7 @@ export class Bot extends EventEmitter {
} else if (e instanceof OperationSuccess) {
await this.messages.system.send("SUCCESS", undefined, i as CommandInteraction);
} else if (e instanceof CommandNotFound) {
await this.messages.system.send("NOT_FOUND", { user: i.user, phrase: e.query });
await this.messages.system.send("NOT_FOUND", { user: i.user, phrase: e.query }, i);
} else {
await this.messages.system.send(
"ERROR",