mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
Updated interaction reply to have embed with color
This commit is contained in:
1 parent
7437f67cbe
commit
4a7bf9ecb9
4 files changed
+113
-50
No files matched your search
+10
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user