#Guild#disableInvites returns 403

5 messages · Page 1 of 1 (latest)

light moat
#

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?

feral rainBOT
#
  • 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!
light moat
#

(Node 18.16.0 LTS, discord.js 14.11.0)

upper tree
#

your bot needs the ManageGuild permission, but you'll need to make sure you're editing the correct guild

light moat