Message to embed
I am trying to make a command that takes raw json as a message and converts it into an embed. I'm not sure how to get the parsed json object as an embed. If anyone could help that would be amazing.
3 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 OPprovided
message
is your object, json
will be the object in question
embeds can be supplied to TextChannel#send through the embeds: [...]
keyLet's say user runs the command providing: