lang & debug stuff
This commit is contained in:
parent
459863b7fa
commit
dc176fca50
@ -26,3 +26,6 @@ Manage which commands are enabled within your server.
|
||||
|
||||
[SETTING_COMMANDS_NONE]
|
||||
No commands are disabled.
|
||||
|
||||
[C_DISABLE_WARNING]
|
||||
You disabled a command inside of the **Administration** module. It is dangerous to do so, as it may disable configurability of your server. Note you are unable to disable the `command:enable` and `command:disable` commands.
|
@ -145,7 +145,10 @@ class CommandHandler extends Observer {
|
||||
});
|
||||
|
||||
try {
|
||||
this.logger.info(`${invoker.user.tag} (${invoker.user.id}) is executing ${invoker.command.name} in ${invoker.guild?.name || 'dms'}`);
|
||||
let debugstr = invoker.command.name;
|
||||
if (invoker.subcommandGroup) debugstr += ` ${invoker.subcommandGroup.name}`;
|
||||
if(invoker.subcommand) debugstr += ` ${invoker.subcommand.name}`;
|
||||
this.logger.info(`${invoker.user.tag} (${invoker.user.id}) is executing ${debugstr} in ${invoker.guild?.name || 'dms'}`);
|
||||
response = await invoker.command.execute(invoker, options);
|
||||
invoker.command.success(now);
|
||||
} catch (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user