Archived
fixed not found message not firing and added some minor changes
This commit is contained in:
1 parent
3004787cf0
commit
1e2966dfa9
4 files changed
+21
-7
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user