aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/config/blacklist.ts4
-rw-r--r--src/commands/info/userInfo.ts2
2 files changed, 3 insertions, 3 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';
}
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts
index b9d59cc..7172c75 100644
--- a/src/commands/info/userInfo.ts
+++ b/src/commands/info/userInfo.ts
@@ -153,7 +153,7 @@ export default class UserInfoCommand extends BushCommand {
}
if (perms.length) userEmbed.addField('» Important Perms', perms.join(' '));
- if (emojis) userEmbed.setDescription('​'/*zero width space*/+emojis.join(' '));
+ if (emojis) userEmbed.setDescription('​' /*zero width space*/ + emojis.join(' '));
return await message.util.reply({ embeds: [userEmbed] });
}