aboutsummaryrefslogtreecommitdiff
path: root/src/commands/leveling
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-27 16:57:39 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-27 16:57:39 -0400
commit877537043dd2a8ba16037f061716d9c6f7a5764a (patch)
tree9e9fd2c69b415d2f548e97d0d6abbf3bc8a314a8 /src/commands/leveling
parenta1ab06dcfccef90192b90910aecdddbc505eca00 (diff)
downloadtanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.tar.gz
tanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.tar.bz2
tanzanite-877537043dd2a8ba16037f061716d9c6f7a5764a.zip
change printWidth to 130 and update dependecies
Diffstat (limited to 'src/commands/leveling')
-rw-r--r--src/commands/leveling/level.ts11
-rw-r--r--src/commands/leveling/setLevel.ts3
2 files changed, 2 insertions, 12 deletions
diff --git a/src/commands/leveling/level.ts b/src/commands/leveling/level.ts
index faaf201..588456b 100644
--- a/src/commands/leveling/level.ts
+++ b/src/commands/leveling/level.ts
@@ -1,13 +1,4 @@
-import {
- AllowedMentions,
- BushCommand,
- BushGuild,
- BushMessage,
- BushSlashMessage,
- BushUser,
- CanvasProgressBar,
- Level
-} from '@lib';
+import { AllowedMentions, BushCommand, BushGuild, BushMessage, BushSlashMessage, BushUser, CanvasProgressBar, Level } from '@lib';
import canvas from 'canvas';
import { MessageAttachment } from 'discord.js';
import got from 'got/dist/source';
diff --git a/src/commands/leveling/setLevel.ts b/src/commands/leveling/setLevel.ts
index e085a8e..18138bc 100644
--- a/src/commands/leveling/setLevel.ts
+++ b/src/commands/leveling/setLevel.ts
@@ -54,8 +54,7 @@ export default class SetLevelCommand extends BushCommand {
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');
- if (isNaN(level))
- return await message.util.reply(`${util.emojis.error} Provide a valid number to set the user's level to.`);
+ if (isNaN(level)) return await message.util.reply(`${util.emojis.error} Provide a valid number to set the user's level to.`);
if (level > 6553 || level < 0)
return await message.util.reply(`${util.emojis.error} You cannot set a level higher than \`6553\`.`);