Missing access error
I'm trying to make a warn command, I don't know why it's saying missing access. The only thing the bot fetches is guild ID.
12 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!Can you show the full error?
Yep.
That’s a long stack trace
How can I make it shorter?
I’ve never seen it in this format before
Thought you were using a custom error handler or smth
Do you have a try catch block in the interactionCreate event?
Nope.
I can send you the InteractionCreate if you want.
Put one around the
.execute(…)
And make sure to await the execute call
And log the error like console.error(error)
in the catch blockokay so i think i did what you said
and now i got this
and i also got this one
this is my interaction create
This one is either not calling connect beforehand or slow connection to db
The former is more common
You can’t reply to the interaction more than once
Also can’t reply the interaction has been deferred
im not?
i only have one interaction.reply