diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-01 17:24:16 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-01 17:24:16 -0400 |
commit | 4c3474c63dc3c5deb5bc1dd9f37cc9d5812b62fd (patch) | |
tree | 7ef72c3c3ff9d3a896d8781c5c54b7303d4e5a29 /src/commands/leveling/setXp.ts | |
parent | d7099571b90c4211f90089bb41e90b0a08b86112 (diff) | |
download | tanzanite-4c3474c63dc3c5deb5bc1dd9f37cc9d5812b62fd.tar.gz tanzanite-4c3474c63dc3c5deb5bc1dd9f37cc9d5812b62fd.tar.bz2 tanzanite-4c3474c63dc3c5deb5bc1dd9f37cc9d5812b62fd.zip |
chore: fromatting fixes, refactor ping command, hopefully fix duration rounding issues
Diffstat (limited to 'src/commands/leveling/setXp.ts')
-rw-r--r-- | src/commands/leveling/setXp.ts | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/commands/leveling/setXp.ts b/src/commands/leveling/setXp.ts index e26cdcc..1f7c981 100644 --- a/src/commands/leveling/setXp.ts +++ b/src/commands/leveling/setXp.ts @@ -50,17 +50,12 @@ export default class SetXpCommand extends BushCommand { ); const [levelEntry] = await Level.findOrBuild({ - where: { - user: user.id, - guild: message.guild.id - }, - defaults: { - user: user.id, - guild: message.guild.id - } + where: { user: user.id, guild: message.guild.id }, + defaults: { user: user.id, guild: message.guild.id } }); 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 ${util.format.input( levelEntry.xp.toLocaleString() |