diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-19 17:42:29 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-19 17:42:29 -0400 |
commit | 0fc87a141609fe7d6a80931b73f59c872b0bd44f (patch) | |
tree | 715d65c8801de4376845c01edfe01abedaabbc91 /src/commands/config | |
parent | b023e057083f002418d2a685dbfb17faa624b6b1 (diff) | |
download | tanzanite-0fc87a141609fe7d6a80931b73f59c872b0bd44f.tar.gz tanzanite-0fc87a141609fe7d6a80931b73f59c872b0bd44f.tar.bz2 tanzanite-0fc87a141609fe7d6a80931b73f59c872b0bd44f.zip |
change some stuff
Diffstat (limited to 'src/commands/config')
-rw-r--r-- | src/commands/config/blacklist.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/config/blacklist.ts b/src/commands/config/blacklist.ts index 8e5d703..ae19d70 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'; } |