Guilds
Leave guild
Removes the current user from the specified guild membership. When delete_messages is true, the caller's authored messages in the guild are deleted before leaving; that path requires sudo mode verification.
delete/users/@me/guilds/{guild_id}
Path parameters
The ID of the guild
Query parameters
delete_messagesstring
Also delete every message the caller has authored in the guild before leaving
Also delete every message the caller has authored in the guild before leaving
Request body
Response
No Content