Search
Get Started
d-I❄
discord.js - Imagine ❄
•
3y ago
Osirizz🧳
Discord Slash Embed Message
Hi guys
, how do i add a field in embed slash message
?
?
discord.js - Imagine ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
58,335
Members
View on Discord
Was this page helpful?
Yes
No
D
d.js toolkit
•
7/25/23, 10:27 PM
What
's your exact discord
.js
npm list discord.js
npm list discord.js
and node
node -v
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
!
E
edocsil
•
7/25/23, 10:30 PM
Add a
fields
fields
array of APIEmbedFields
https://discord-api-types.dev/api/discord-api-types-v10/interface/APIEmbedField
E
edocsil
•
7/25/23, 10:31 PM
Or use builders and call
.addFields
(
)
O
Osirizz🧳
OP
•
7/25/23, 10:40 PM
Also
, where do i find what does these types means
E
edocsil
•
7/25/23, 10:42 PM
https://discord-api-types.dev/api/discord-api-types-v10/enum/ApplicationCommandOptionType
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
O
Osirizz🧳
OP
•
7/25/23, 11:08 PM
Hi
, i tried to add a footer
& timestamp but it didn
't worked
O
Osirizz🧳
OP
•
7/25/23, 11:19 PM
i
've found ty
O
Osirizz🧳
Hi, i tried to add a footer & timestamp but it didn't worked
C
Cae
•
7/26/23, 8:28 AM
.setTimestamp
(
)
C
Cae
.setTimestamp()
J
jay
•
7/26/23, 9:22 AM
thats only for the embed builder
O
Osirizz🧳
Hi, i tried to add a footer & timestamp but it didn't worked
C
Cgx
•
7/26/23, 9:47 AM
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(),
fields
fields
timestamp
:
new
Date
().
toISOString
(),
timestamp
:
new
Date
().
toISOString
(),