aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-19 21:43:08 +0000
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-19 21:43:08 +0000
commite2787c5a15e6b9a0c00bc7ed31fe3d1774fb8ff1 (patch)
tree5801b5c996c901014d8f8f3761f4873703740ad8 /src/commands
parentb228c3b222f37ceaa888f926811e6cfadf33e24a (diff)
downloadtanzanite-e2787c5a15e6b9a0c00bc7ed31fe3d1774fb8ff1.tar.gz
tanzanite-e2787c5a15e6b9a0c00bc7ed31fe3d1774fb8ff1.tar.bz2
tanzanite-e2787c5a15e6b9a0c00bc7ed31fe3d1774fb8ff1.zip
Automatically format code
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/config/blacklist.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/config/blacklist.ts b/src/commands/config/blacklist.ts
index ae19d70..5696c40 100644
--- a/src/commands/config/blacklist.ts
+++ b/src/commands/config/blacklist.ts
@@ -102,8 +102,8 @@ export default class BlacklistCommand extends BushCommand {
});
// guild disable
} else {
- const blacklistedChannels = await message.guild.getSetting('blacklistedChannels')??[];
- const blacklistedUsers = await message.guild.getSetting('blacklistedUsers')??[];
+ const blacklistedChannels = (await message.guild.getSetting('blacklistedChannels')) ?? [];
+ const blacklistedUsers = (await message.guild.getSetting('blacklistedUsers')) ?? [];
if (action === 'toggle') {
action = blacklistedChannels.includes(targetID) ?? blacklistedUsers.includes(targetID) ? 'unblacklist' : 'blacklist';
}