mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-04-19 21:03:56 +02:00
Update parsing and validation logic for playlist-limit config
This commit is contained in:
parent
847c578b5d
commit
33b0ffa244
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ export default class implements Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'playlist-limit': {
|
case 'playlist-limit': {
|
||||||
const playlistLimit = Number(args[1]);
|
const playlistLimit = parseInt(args[1], 10);
|
||||||
if (!playlistLimit || playlistLimit <= 0) {
|
if (playlistLimit <= 0) {
|
||||||
await msg.channel.send(errorMsg('please enter a valid number'));
|
await msg.channel.send(errorMsg('please enter a valid number'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue