Ajout du volume max
This commit is contained in:
parent
5bac7f38f3
commit
05776de276
|
@ -17,9 +17,10 @@ module.exports = {
|
|||
|
||||
if (queue.volume === vol) return message.channel.send(`The volume you want to change is already the current one ${message.author}... try again ? ❌`);
|
||||
|
||||
//:if (vol < 0 || vol > maxVol) return message.channel.send(`The specified number is not valid. Enter a number between **1** and **${maxVol}** ${message.author}... try again ? ❌`);
|
||||
|
||||
if (vol === "666") return message.channel.send('Welcome to the Hell ... but no ...');
|
||||
|
||||
if (vol < 0 || vol > maxVol) return message.channel.send(`The specified number is not valid. Enter a number between **1** and **${maxVol}** ${message.author}... try again ? ❌`);
|
||||
|
||||
|
||||
const success = queue.setVolume(vol);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user