Fix queue.setPaused(false) return notification

This commit is contained in:
aiko-chan-ai 2021-08-19 23:09:08 +07:00 committed by GitHub
parent 8e83a2ded5
commit 6799ff12d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,7 +265,7 @@ client.on("interactionCreate", async (interaction) => {
const queue = player.getQueue(interaction.guildId);
if (!queue || !queue.playing) return void interaction.followUp({ content: "❌ | No music is being played!" });
const success = queue.setPaused(false);
return void interaction.followUp({ content: success ? "▶ | Resumed!" : "❌ | Something went wrong!" });
return void interaction.followUp({ content: success ? "❌ | Something went wrong!" : "▶ | Resumed!" });
} else if (interaction.commandName === "stop") {
await interaction.deferReply();
const queue = player.getQueue(interaction.guildId);