Fix mention prefix

This commit is contained in:
2022-03-04 20:21:07 +07:00
parent 38719f4a83
commit 22e4a5ddac
+4 -1
View File
@@ -251,8 +251,11 @@ class Discord {
args = []; args = [];
for(const module of this.loaded_module) { for(const module of this.loaded_module) {
let thisModule = module[1]; let thisModule: DiscordModule = module[1];
thisModule.GuildOnCommand(command, args, message); thisModule.GuildOnCommand(command, args, message);
if(thisModule.commands && thisModule.commands.includes(command))
thisModule.GuildOnModuleCommand(args, message);
} }
}); });