aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/dev/setLevel.ts2
-rw-r--r--src/commands/dev/test.ts2
-rw-r--r--src/commands/moderation/slowmode.ts1
-rw-r--r--src/commands/skyblock-reborn/chooseColor.ts3
4 files changed, 6 insertions, 2 deletions
diff --git a/src/commands/dev/setLevel.ts b/src/commands/dev/setLevel.ts
index 6603fcf..97527fa 100644
--- a/src/commands/dev/setLevel.ts
+++ b/src/commands/dev/setLevel.ts
@@ -48,7 +48,7 @@ export default class SetLevelCommand extends BushCommand {
});
}
- override async exec(
+ public override async exec(
message: BushMessage | BushSlashMessage,
{ user, level }: { user: User; level: number }
): Promise<unknown> {
diff --git a/src/commands/dev/test.ts b/src/commands/dev/test.ts
index 0029a3a..5552803 100644
--- a/src/commands/dev/test.ts
+++ b/src/commands/dev/test.ts
@@ -136,8 +136,10 @@ export default class TestCommand extends BushCommand {
// })
// );
const guildCommands = await message.guild.commands.fetch();
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
guildCommands.forEach(async (command) => await command.delete());
const globalCommands = await client.application.commands.fetch();
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
globalCommands.forEach(async (command) => await command.delete());
return await message.util.reply(
diff --git a/src/commands/moderation/slowmode.ts b/src/commands/moderation/slowmode.ts
index fd3aec6..ec9a9de 100644
--- a/src/commands/moderation/slowmode.ts
+++ b/src/commands/moderation/slowmode.ts
@@ -82,6 +82,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} ${
length2 ? `to \`${util.humanizeDuration(length2)}` : '`off'
}\`.`
diff --git a/src/commands/skyblock-reborn/chooseColor.ts b/src/commands/skyblock-reborn/chooseColor.ts
index 3814670..a912954 100644
--- a/src/commands/skyblock-reborn/chooseColor.ts
+++ b/src/commands/skyblock-reborn/chooseColor.ts
@@ -168,7 +168,8 @@ export default class ChooseColorCommand extends BushCommand {
if (memberColorRoles.size) {
memberColorRoles.forEach(
- (role) => (message.member as BushGuildMember).roles.remove(role),
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
+ async (role: Role) => await (message.member as BushGuildMember).roles.remove(role),
'Removing Duplicate Color Roles.'
);
}