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

guild_idstring snowflake required

The ID of the guild

Query parameters

delete_messagesstring

Also delete every message the caller has authored in the guild before leaving

Request body

passwordstring
mfa_method'totp' | 'webauthn'

MFA method to use for verification

mfa_codestring

MFA verification code from an authenticator app

webauthn_responseobject

WebAuthn authentication response

webauthn_challengestring

WebAuthn challenge string

Response

No Content

Changes

No recorded changes to this endpoint across all 1 revision of this API.