Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rajamoulimallareddy committed Oct 6, 2021
1 parent 77c4108 commit cf8e554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/Volume.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
if (isNaN(newVolume)) {
message.reply({ embeds: [client.util.embed().setDescription(`Current volume: \`${MusicDispatcher.player.filters.volume * 100}\``)], allowedMentions: { repliedUser: false } });
} else {
if (newVolume < 0 || newVolume > 500 || !isNaN(newVolume))
if (newVolume < 0 || newVolume > 500)
return message.reply({ embeds: [client.util.embed().setDescription('You can only set the volume from 0-500.')], allowedMentions: { repliedUser: false } });
await MusicDispatcher.player.setVolume(newVolume / 100);
message.reply({ embeds: [client.util.embed().setDescription(`The playback volume is now set to: \`${newVolume}\``)], allowedMentions: { repliedUser: false } });
Expand Down

0 comments on commit cf8e554

Please sign in to comment.