Skip to content

I need to convert a playingMessage to embed message. Please help me #238

Answered by brandonst
arshalabbas asked this question in Ideas
Discussion options

You must be logged in to vote

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

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,
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

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@Prasham27
Comment options

@arshalabbas
Comment options

@Prasham27
Comment options

@arshalabbas
Comment options

@karimawi
Comment options

Answer selected by arshalabbas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
5 participants