aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands/config.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/config.ts b/src/commands/config.ts
index 13186fc..cb3fc74 100644
--- a/src/commands/config.ts
+++ b/src/commands/config.ts
@@ -76,8 +76,8 @@ export default class implements Command {
}
case 'playlist-limit': {
- const playlistLimit = Number(args[1]);
- if (!playlistLimit || playlistLimit <= 0) {
+ const playlistLimit = parseInt(args[1], 10);
+ if (playlistLimit <= 0) {
await msg.channel.send(errorMsg('please enter a valid number'));
return;
}