Discord Slash Embed Message

Hi guys, how do i add a field in embed slash message ??
9 Replies
d.js toolkit
d.js toolkit2y ago
- 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!
edocsil
edocsil2y ago
Add a fields array of APIEmbedFields https://discord-api-types.dev/api/discord-api-types-v10/interface/APIEmbedField Or use builders and call .addFields()
Gustavo 🧳
Gustavo 🧳OP2y ago
Also, where do i find what does these types means
edocsil
edocsil2y ago
discord-api-types documentation
discord-api-types - Imagine typings
discord-api-types is a simple Node/Deno module that brings up to date typings for Discord's API
Gustavo 🧳
Gustavo 🧳OP2y ago
Hi, i tried to add a footer & timestamp but it didn't worked
Gustavo 🧳
Gustavo 🧳OP2y ago
i've found ty
Cae
Cae2y ago
.setTimestamp()
jay
jay2y ago
thats only for the embed builder
Cgx
Cgx2y ago
I strongly recommend to use EmbedBuilder since it's way easier to use. Since you use it as Object, you need to use
timestamp: new Date().toISOString(),
timestamp: new Date().toISOString(),
Want results from more Discord servers?
Add your server