aboutsummaryrefslogtreecommitdiff
path: root/src/commands/owner
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-05-18 23:43:22 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-05-18 23:43:22 -0400
commitc724e94dd95e62d5ba0cb1b94f6d5d76145302c0 (patch)
treefdb5d29cbaf6c13ea3c1461622da6644ec9384aa /src/commands/owner
parent267c2946fc80e75cf01f22d311dd07cfb853f74b (diff)
downloadtanzanite-c724e94dd95e62d5ba0cb1b94f6d5d76145302c0.tar.gz
tanzanite-c724e94dd95e62d5ba0cb1b94f6d5d76145302c0.tar.bz2
tanzanite-c724e94dd95e62d5ba0cb1b94f6d5d76145302c0.zip
Format
Diffstat (limited to 'src/commands/owner')
-rw-r--r--src/commands/owner/reload.ts4
-rw-r--r--src/commands/owner/setlevel.ts11
2 files changed, 9 insertions, 6 deletions
diff --git a/src/commands/owner/reload.ts b/src/commands/owner/reload.ts
index 7a508d7..0330b27 100644
--- a/src/commands/owner/reload.ts
+++ b/src/commands/owner/reload.ts
@@ -34,10 +34,10 @@ export default class ReloadCommand extends BotCommand {
}
public async exec(message: Message): Promise<void> {
- await message.util.send(await this.getResponse())
+ await message.util.send(await this.getResponse());
}
public async execSlash(message: CommandInteraction): Promise<void> {
- await message.reply(await this.getResponse())
+ await message.reply(await this.getResponse());
}
}
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()
- })
+ });
}
}