Merge pull request #721 from aiko-chan-ai/patch-1

fix(example): fix resume message
This commit is contained in:
Andromeda 2021-08-19 21:56:51 +05:45 committed by GitHub
commit 12e448a254
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);