aboutsummaryrefslogtreecommitdiff
path: root/src/commands/leveling/setLevel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/leveling/setLevel.ts')
-rw-r--r--src/commands/leveling/setLevel.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/leveling/setLevel.ts b/src/commands/leveling/setLevel.ts
index be3700a..5eb97b7 100644
--- a/src/commands/leveling/setLevel.ts
+++ b/src/commands/leveling/setLevel.ts
@@ -54,8 +54,6 @@ export default class SetLevelCommand extends BushCommand {
message: BushMessage | BushSlashMessage,
{ user, level }: { user: User; level: number }
): Promise<unknown> {
- if (!message.author.isOwner())
- return await message.util.reply(`${util.emojis.error} Only my developers can run this command.`);
if (!message.guild) return await message.util.reply(`${util.emojis.error} This command can only be run in a guild.`);
if (!user.id) throw new Error('user.id is null');
@@ -71,7 +69,9 @@ export default class SetLevelCommand extends BushCommand {
});
await levelEntry.update({ xp: Level.convertLevelToXp(level) });
return await message.util.send({
- content: `Successfully set level of <@${user.id}> to \`${level}\` (\`${levelEntry.xp}\` XP)`,
+ content: `Successfully set level of <@${
+ user.id
+ }> to \`${level.toLocaleString()}\` (\`${levelEntry.xp.toLocaleString()}\` XP)`,
allowedMentions: AllowedMentions.none()
});
}