Invite Permission Issue
(@ to reply) (repost from #djs-help-v14 but escalating)
I am having an issue creating an invite using discord.js v14.14.1
When the bot has
administrator
permissions this code works just fine, but when the bot is added to a server with the CreateInstantInvite
and no admin permissions I get a DiscordAPIError[50013]: Missing Permissions
error.
This has been reproduced in a few other servers and I've had the same issue
When logging permissions I get this
I've removed the irrelevant parts of my code, but if you think anything is of interest let me know and I'll send it.2 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!
- ✅
Marked as resolved by OPStack trace:
Node:
Npm:
That worked! I hate how simple that was so fix. I've been spending so much time trying to fix it
Thank you so much 😭