mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-07 01:20:48 +00:00
Fix code to work on this decade 1/x
This commit is contained in:
@ -4,10 +4,9 @@ module.exports = {
|
||||
alias: ["none"],
|
||||
usage: '<volume>',
|
||||
cooldown: 5,
|
||||
onlyDev: false,
|
||||
permission: 'MANAGE_MESSAGES',
|
||||
category: 'music control',
|
||||
execute(msg, args, client, Discord, command) {
|
||||
execute(msg, args, client, command) {
|
||||
const queue = client.queue.get(msg.guild.id);
|
||||
if (!args[1] && queue) return msg.channel.send(`${client.messages.currentVolume}**${queue.volume}**`);
|
||||
const volume = parseFloat(args[1]);
|
||||
@ -20,4 +19,4 @@ module.exports = {
|
||||
return msg.channel.send(`${client.messages.setVolume}**${volume}**`);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user