aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/disable.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-06 15:20:46 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-06 15:20:46 -0400
commit13306f17accea5d3653dd4b8670ba0d6ab69c7c5 (patch)
tree7075dcca19ed1164a166efac19c49311e93ffeee /src/commands/config/disable.ts
parenta8386e756758f243b75e5df4886224d2bf9f241c (diff)
downloadtanzanite-13306f17accea5d3653dd4b8670ba0d6ab69c7c5.tar.gz
tanzanite-13306f17accea5d3653dd4b8670ba0d6ab69c7c5.tar.bz2
tanzanite-13306f17accea5d3653dd4b8670ba0d6ab69c7c5.zip
evidence command and more logging
Diffstat (limited to 'src/commands/config/disable.ts')
-rw-r--r--src/commands/config/disable.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/config/disable.ts b/src/commands/config/disable.ts
index bc6ed47..db4909a 100644
--- a/src/commands/config/disable.ts
+++ b/src/commands/config/disable.ts
@@ -103,7 +103,7 @@ export default class DisableCommand extends BushCommand {
action = disabledCommands.includes(commandID) ? 'disable' : 'enable';
}
const newValue = util.addOrRemoveFromArray(action === 'disable' ? 'remove' : 'add', disabledCommands, commandID);
- const success = await message.guild!.setSetting('disabledCommands', newValue).catch(() => false);
+ const success = await message.guild!.setSetting('disabledCommands', newValue, message.member!).catch(() => false);
if (!success)
return await message.util.reply({
content: `${util.emojis.error} There was an error **${action.substr(