26 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!Not having any issues with my other events files, that's what I don't understand
Get which role?
Ur talking like we can see ur code or know what ur referring to
Giving a role, sorry
Show code
And error
Oh, haven't migrate the discussion I had in #djs-help-v14
The interaction just fails, I don't have any errors
Await the reply
You’ll prob get an unknown interaction error
Or this just sends the button?
It just sends it
Ur not replying
Either use reply to send a message or use update to edit the message the button is on
I'm not sure to follow you
Are you sure ur handler sends all interactions?
Yup
Can you log
interaction
at the beginning of the arrow function?Before my trycatch block?
I think that it was just a folder name issue, however,
Oh wait, fixed it by myself;
Problem solved, I guess
Too dumb, forgot to put the roleid in the .env
Second thing, I own the guild, so it is normal that it can give me the role
not really
you should be able to give roles to anyone as long as some conditions are met
- Bots cannot moderate (kick/ban/nickname/...) a target with a higher or equally high highest role or the guild owner.
- Bots cannot modify (edit/add/remove) roles that are higher or equally high compared to the bot's highest role.
- The
Administrator
permission does not skip these checks.or the guild owner.
And I am.
But that line is about kick/ban/nickname
Oh, yeah, right
I have the highest role
Make sense
So I just have to reply back when the role is given to not make it fail, right?
Yea
Could theorically reply and delete, isn't?
Yes
Not good UX tbh, but it’s a thing
Why not just reply + ephemeral?
That's what I did