I need to convert a playingMessage to embed message. Please help me #238
-
I provided the code down, let's check it out...and help me. PLEASE
In Include>play.js |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
making it into an embed is very simple, to start, add this as the first line of that file if it isn't already there Then replace with const playingEmbed = new Discord.MessageEmbed()
.setDescription(`🎶 Started playing: ${song.title}`)
let playingMessage = await queue.textChannel.send(playingEmbed) Now, this is a very simple embed that only includes a description, |
Beta Was this translation helpful? Give feedback.
making it into an embed is very simple, to start, add this as the first line of that file if it isn't already there
const Discord = require('discord.js')
Then replace
var playingMessage = await queue.textChannel.send(🎶 Started playing: ${song.title})
with
Now, this is a very simple embed that only includes a description,
and I'm assuming you want to expand it to include more information.
If you wish to add more things like a title, or author, refer to this guide
https://discordjs.guide/popular-topics/embeds.html