diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/dev/eval.ts | 9 | ||||
-rw-r--r-- | src/commands/info/userInfo.ts | 2 | ||||
-rw-r--r-- | src/commands/moderation/slowmode.ts | 3 | ||||
-rw-r--r-- | src/commands/moulberry-bush/capes.ts | 2 | ||||
-rw-r--r-- | src/commands/utilities/activity.ts | 1 |
5 files changed, 8 insertions, 9 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 3bc2eed..cbc6518 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -99,20 +99,23 @@ export default class EvalCommand extends BushCommand { { ActivePunishment, Global, Guild, Level, ModLog, StickyRole } = await import('@lib'), { ButtonInteraction, + Collection, Collector, CommandInteraction, + ContextMenuInteraction, + DMChannel, + Emoji, Interaction, + InteractionCollector, Message, MessageActionRow, MessageAttachment, MessageButton, MessageCollector, - InteractionCollector, MessageEmbed, MessageSelectMenu, ReactionCollector, - Util, - Collection + Util } = await import('discord.js'), { Canvas } = await import('canvas'); /* eslint-enable @typescript-eslint/no-unused-vars */ diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts index 9fddd67..4e60f4c 100644 --- a/src/commands/info/userInfo.ts +++ b/src/commands/info/userInfo.ts @@ -180,7 +180,7 @@ export default class UserInfoCommand extends BushCommand { } if (perms.length) userEmbed.addField('ยป Important Perms', perms.join(' ')); - if (emojis) userEmbed.setDescription('\u200B' /*zero width space*/ + emojis.join(' ')); + if (emojis) userEmbed.setDescription(`\u200B${emojis.join(' ')}`); // zero width space return await message.util.reply({ embeds: [userEmbed] }); } diff --git a/src/commands/moderation/slowmode.ts b/src/commands/moderation/slowmode.ts index 04fe3e4..4b3a976 100644 --- a/src/commands/moderation/slowmode.ts +++ b/src/commands/moderation/slowmode.ts @@ -81,8 +81,7 @@ export default class SlowModeCommand extends BushCommand { ); else return await message.util.reply( - // eslint-disable-next-line @typescript-eslint/no-base-to-string - `${util.emojis.success} Successfully changed the slowmode of ${channel} ${ + `${util.emojis.success} Successfully changed the slowmode of <#${channel.id}> ${ length2 ? `to \`${util.humanizeDuration(length2)}` : '`off' }\`.` ); diff --git a/src/commands/moulberry-bush/capes.ts b/src/commands/moulberry-bush/capes.ts index 447d604..14a972e 100644 --- a/src/commands/moulberry-bush/capes.ts +++ b/src/commands/moulberry-bush/capes.ts @@ -90,9 +90,7 @@ export default class CapesCommand extends BushCommand { const sortedCapes = capes1.sort((a, b) => { let aWeight: number | undefined = undefined, bWeight: number | undefined = undefined; - // eslint-disable-next-line prefer-const aWeight ??= a?.index; - // eslint-disable-next-line prefer-const bWeight ??= b?.index; if (aWeight !== undefined && bWeight !== undefined) { diff --git a/src/commands/utilities/activity.ts b/src/commands/utilities/activity.ts index c0ab2a2..2d818e7 100644 --- a/src/commands/utilities/activity.ts +++ b/src/commands/utilities/activity.ts @@ -18,7 +18,6 @@ function map(phase: string) { else return undefined; } -// eslint-disable-next-line @typescript-eslint/no-unused-vars const activityTypeCaster = (_message: Message | BushMessage | BushSlashMessage, phrase: string) => { if (!phrase) return null; const mappedPhrase = map(phrase); |