Skip to content

Commit

Permalink
[Fix] Fix message info being sent twice
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Oct 7, 2021
1 parent a95610b commit d73c8ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/Music/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ module.exports = {
: await message.channel.send({
embeds: [musicEmbed],
});
return;
} catch (err) {
client.logger(err.message, "error");
console.log(err);
Expand All @@ -143,6 +144,7 @@ module.exports = {
searchSong.playlist
? await message.channel.send({ embeds: [playlistEmbed, musicEmbed] })
: await message.channel.send({ embeds: [musicEmbed] });
return;
}
},
data: new SlashCommandBuilder()
Expand Down Expand Up @@ -257,6 +259,7 @@ module.exports = {
: await interaction.followUp({
embeds: [musicEmbed],
});
return;
} catch (err) {
client.logger(err.message, "error");
await interaction.followUp(
Expand All @@ -269,6 +272,7 @@ module.exports = {
searchSong.playlist
? await interaction.followUp({ embeds: [playlistEmbed, musicEmbed] })
: await interaction.followUp({ embeds: [musicEmbed] });
return;
}
},
};

0 comments on commit d73c8ea

Please sign in to comment.