aboutsummaryrefslogtreecommitdiff
path: root/src/commands/owner/setlevel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/owner/setlevel.ts')
-rw-r--r--src/commands/owner/setlevel.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/commands/owner/setlevel.ts b/src/commands/owner/setlevel.ts
index c9d28a4..6987385 100644
--- a/src/commands/owner/setlevel.ts
+++ b/src/commands/owner/setlevel.ts
@@ -64,7 +64,7 @@ export default class SetLevelCommand extends BotCommand {
});
levelEntry.xp = Level.convertLevelToXp(level);
await levelEntry.save();
- return `Successfully set level of <@${user.id}> to \`${level}\` (\`${levelEntry.xp}\` XP)`
+ return `Successfully set level of <@${user.id}> to \`${level}\` (\`${levelEntry.xp}\` XP)`;
}
async exec(
@@ -73,15 +73,18 @@ export default class SetLevelCommand extends BotCommand {
): Promise<void> {
await message.util.send(await this.setLevel(user, level), {
allowedMentions: AllowedMentions.none()
- })
+ });
}
async execSlash(
message: CommandInteraction,
- { user, level }: { user: SlashCommandOption<void>; level: SlashCommandOption<number> }
+ {
+ user,
+ level
+ }: { user: SlashCommandOption<void>; level: SlashCommandOption<number> }
): Promise<void> {
await message.reply(await this.setLevel(user.user, level.value), {
allowedMentions: AllowedMentions.none()
- })
+ });
}
}