mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
Update parsing and validation logic for playlist-limit config
This commit is contained in:
parent
847c578b5d
commit
33b0ffa244
|
@ -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…
Reference in a new issue