Send regular text in a message with an embed
So I'm trying to make my bot send a message that mentions a certain role when it sends an embed. I want the mention and embed to be in the same message if possible. If this is possible, how can I do it? A snippet of my code where the embed is sent is below.
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPYou can send an object like
{ content, embeds }
to the channel, with content
being the plain text displayed above the embedLike this?
await channel.send({ '<@&1234293384462467123>', embeds: [SSUEmbed] })
Cuz that's giving me an error
I'll send it in a secObjects have both keys and values
You need to specify the key
content
I did the same thing right below it 💀
thank you
Works now 🙂