How to send a embed automatic, when the bot is started
help pls
19 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!i have that interaction create that creates the embed and sends it
but is not doing that when the bot starts
use the ready event
already did, but im using interaction
and i cant use interaction on ready.js
idk why
because the ready event fires with a client
for the interactionCreate event to fire you need an interaction such as a slash command
no
i cant use slash command
i want to send the embed automatic
Then use the ready event
and use the above code to send the embed
but how can i get to the embed
i try to do export const
but it gives me an error
how do i do the embed and called it on the ready.js
by constructing it your ready event
any example?
import embedbuilder
then construct it as you would in your interactionCreate
EmbedBuilder isnt an interactionCreate thing
im not understanding
yes
but im using infos in the embed
this is rather basic js at this point
that requires interaction
like
interaction guild iconURL
Get the guild from cache
how
forget it
<Client>.guilds.cache.get(id)
Requires the Guilds intent