Guild#disableInvites returns 403

Hello! I am trying to enable disableInvites, but every time Guild#disableInvites is called, I get a missing access error (API error 50001 and error code 403). What permission (or intent?) do I need for my bot to turn off invites?
4 Replies
d.js toolkit
d.js toolkit2y ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
val
valOP2y ago
(Node 18.16.0 LTS, discord.js 14.11.0)
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
val
valOP2y ago
Forgot to say that I figured it out :P I gave it the Administrator permission, but my testing guild had Community disabled (and I also assume that GuildInvites had to be put on as an intent, so I gave it that too) Thank you :)
Want results from more Discord servers?
Add your server