Scope for Leave guild (Got 401 error) #7257
-
Hi, I'm experiencing a 401 Unauthorized error when trying to use the Here are the details:
Is there an additional scope or permission required specifically for a user to leave a guild? Or could there be another reason for the 401 error in this case? Thanks in advance for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
this endpoint, like most documented api endpoints, is only for bots. the oauth2 page lists which endpoints each scope grants access to. you cannot automate a user account leaving a guild. if it is your own guild, you can kick them using a bot token instead. |
Beta Was this translation helpful? Give feedback.
this endpoint, like most documented api endpoints, is only for bots. the oauth2 page lists which endpoints each scope grants access to. you cannot automate a user account leaving a guild. if it is your own guild, you can kick them using a bot token instead.