aboutsummaryrefslogtreecommitdiff
path: root/src/commands/leveling/setXp.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-23 22:00:23 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-23 22:00:23 -0500
commitb95f4e00566dc4b99527f6771d56a5e557779e66 (patch)
tree2de597a67c49cc5788ccedd7917075e083643860 /src/commands/leveling/setXp.ts
parent084a815f3799764d2dd697e8c693c7f80e0c7ab7 (diff)
downloadtanzanite-b95f4e00566dc4b99527f6771d56a5e557779e66.tar.gz
tanzanite-b95f4e00566dc4b99527f6771d56a5e557779e66.tar.bz2
tanzanite-b95f4e00566dc4b99527f6771d56a5e557779e66.zip
feat: prefer bold over inline codeblocks
Diffstat (limited to 'src/commands/leveling/setXp.ts')
-rw-r--r--src/commands/leveling/setXp.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/leveling/setXp.ts b/src/commands/leveling/setXp.ts
index 7b1b432..e26cdcc 100644
--- a/src/commands/leveling/setXp.ts
+++ b/src/commands/leveling/setXp.ts
@@ -46,7 +46,7 @@ export default class SetXpCommand extends BushCommand {
if (isNaN(xp)) return await message.util.reply(`${util.emojis.error} Provide a valid number.`);
if (xp > 2147483647 || xp < 0)
return await message.util.reply(
- `${util.emojis.error} Provide an positive integer under \`2147483647\` to set the user's xp to.`
+ `${util.emojis.error} Provide an positive integer under **2,147,483,647** to set the user's xp to.`
);
const [levelEntry] = await Level.findOrBuild({
@@ -62,9 +62,9 @@ export default class SetXpCommand extends BushCommand {
await levelEntry.update({ xp: xp, user: user.id, guild: message.guild.id });
return await message.util.send({
- content: `Successfully set <@${user.id}>'s xp to \`${levelEntry.xp.toLocaleString()}\` (level \`${Level.convertXpToLevel(
- levelEntry.xp
- ).toLocaleString()}\`).`,
+ content: `Successfully set <@${user.id}>'s xp to ${util.format.input(
+ levelEntry.xp.toLocaleString()
+ )} (level ${util.format.input(Level.convertXpToLevel(levelEntry.xp).toLocaleString())}).`,
allowedMentions: AllowedMentions.none()
});
}