Updated interaction reply to have embed with color

This commit is contained in:
Marius Begby committed 2023-07-06 09:45:50 +02:00
1 parent 7437f67cbe
commit 4a7bf9ecb9
4 files changed
+113 -50

No files matched your search

+10 -3
View File
@@ -14,9 +14,15 @@ module.exports = {
),
run: async ({ interaction }) => {
if (!interaction.member.voice.channel) {
return interaction.editReply(
'You need to be in a voice channel to use this command.'
);
return interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
`You need to be in a voice channel to use this command.`
)
.setColor('#c70057')
]
});
}
const player = useMainPlayer();
@@ -48,6 +54,7 @@ module.exports = {
`**Added to queue**\n\`[${track.duration}]\` **[${track.title}](${track.url})**`
)
.setThumbnail(track.thumbnail)
.setColor('#4c73df')
]
});
} catch (e) {