Channels

Remove recipient from group DM

Removes a user from a group direct message channel. The requesting user must be a member with appropriate permissions. When the caller removes themself with delete_messages, their authored messages in the group are deleted before leaving and sudo mode verification is required.

delete/channels/{channel_id}/recipients/{user_id}

Path parameters

string snowflake required
OR
integer required

The ID of the channel

string snowflake required
OR
integer required

The ID of the user

Query parameters

silentstring

Whether to suppress the system message when leaving a group DM

Whether to suppress the system message when leaving a group DM

delete_messagesstring

When leaving a group DM, also delete all messages the caller has sent in the channel

When leaving a group DM, also delete all messages the caller has sent in the channel

Request body

passwordstring
mfa_method'totp' | 'webauthn'

MFA method to use for verification

mfa_codestring

MFA verification code from an authenticator app

webauthn_challengestring

WebAuthn challenge string

Response

No Content

Changes