first commit
This commit is contained in:
19
embeds/nowPlaying.js
Normal file
19
embeds/nowPlaying.js
Normal file
@ -0,0 +1,19 @@
|
||||
const { EmbedBuilder } = require('discord.js')
|
||||
|
||||
function nowPlayingEmbed(queue) {
|
||||
if (!queue || queue.length === 0) {
|
||||
return new EmbedBuilder()
|
||||
.setTitle('**🎵 Now Playing:**')
|
||||
.setDescription('No song is currently playing.')
|
||||
.setColor('Grey');
|
||||
}
|
||||
|
||||
const currentSong = queue[0]
|
||||
|
||||
return new EmbedBuilder()
|
||||
.setTitle('**🎵 Now Playing:**')
|
||||
.setDescription(`${currentSong.songName}\n**Requested By:** ${currentSong.getMember || 'Unknown User'}`)
|
||||
.setColor('Green')
|
||||
}
|
||||
|
||||
module.exports = { nowPlayingEmbed }
|
||||
Reference in New Issue
Block a user