Discord Slash Embed Message

Hi guys, how do i add a field in embed slash message ??
9 Replies
d.js toolkit
d.js toolkit11mo 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
edocsil11mo 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()
InspectorGadget
InspectorGadget11mo ago
Also, where do i find what does these types means
edocsil
edocsil11mo 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
InspectorGadget
InspectorGadget11mo ago
Hi, i tried to add a footer & timestamp but it didn't worked
InspectorGadget
InspectorGadget11mo ago
i've found ty
Cae
Cae11mo ago
.setTimestamp()
j
j11mo ago
thats only for the embed builder
Cgx
Cgx11mo 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(),