Table of Contents

Method RemoveDmRecipientAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

RemoveDmRecipientAsync(ulong, string)

Only use for Group DMs! Whitelisted bots only. Requires user's oauth2 access token.

public Task RemoveDmRecipientAsync(ulong userId, string accessToken)

Parameters

userId ulong

The id of the User to remove.

accessToken string

The OAuth2 access token.

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.