mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 06:43:17 +00:00
Update volume.js
This commit is contained in:
parent
b70c0dc631
commit
f2d6a6b09c
@ -16,7 +16,7 @@ module.exports = {
|
|||||||
if (volume > 100) return msg.channel.send(client.messages.maxVolume);
|
if (volume > 100) return msg.channel.send(client.messages.maxVolume);
|
||||||
if (volume < 0) return msg.channel.send(client.messages.positiveVolume);
|
if (volume < 0) return msg.channel.send(client.messages.positiveVolume);
|
||||||
queue.volume = volume;
|
queue.volume = volume;
|
||||||
queue.connection.dispatcher.setVolume(volume / 5);
|
queue.connection.dispatcher.setVolume(volume / 100);
|
||||||
return msg.channel.send(`${client.messages.setVolume}**${volume}**`);
|
return msg.channel.send(`${client.messages.setVolume}**${volume}**`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user