Table of Contents

Method RemoveDmRecipientAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

RemoveDmRecipientAsync(ulong)

Only use for Group DMs!

public Task RemoveDmRecipientAsync(ulong user_id)

Parameters

user_id ulong

The ID of the User to remove.

Returns

Task

Exceptions

NotFoundException

Thrown when the channel does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.