aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/blacklist.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-20 16:36:23 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-20 16:36:23 -0400
commit5c242f597595b8db71875d92c0afe0a5947442a6 (patch)
tree13c2878b1e6368f17dd349194c320d2518fe2a9d /src/commands/config/blacklist.ts
parentb795a6e51b9ff69ed958f985908f81aff73022dc (diff)
parente2787c5a15e6b9a0c00bc7ed31fe3d1774fb8ff1 (diff)
downloadtanzanite-5c242f597595b8db71875d92c0afe0a5947442a6.tar.gz
tanzanite-5c242f597595b8db71875d92c0afe0a5947442a6.tar.bz2
tanzanite-5c242f597595b8db71875d92c0afe0a5947442a6.zip
Merge branch 'rewrite' of https://github.com/NotEnoughUpdates/bush-bot into rewrite
Diffstat (limited to 'src/commands/config/blacklist.ts')
-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';
}