This commit is contained in:
Jonny_Bro (Nikita) 2023-03-27 19:27:48 +05:00
parent 50fc315d38
commit 4ddd5f48d8

View file

@ -44,7 +44,7 @@ class Volume extends BaseCommand {
if (!queue) return interaction.error("music/play:NOT_PLAYING", null, { ephemeral: true }); if (!queue) return interaction.error("music/play:NOT_PLAYING", null, { ephemeral: true });
const volume = interaction.options.getInteger("int"); const volume = interaction.options.getInteger("int");
if (volume <= 0 || volume > 100) return interaction.error("common:INVALID_NUMBER_RANGE", { min: 1, max: 100 }); if (volume <= 0 || volume > 100) return interaction.error("misc:INVALID_NUMBER_RANGE", { min: 1, max: 100 });
queue.node.setVolume(volume); queue.node.setVolume(volume);
interaction.success("music/volume:SUCCESS", { interaction.success("music/volume:SUCCESS", {