Table of Contents

Method DeleteReactionAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DeleteReactionAsync(DiscordEmoji, DiscordUser, string)

Deletes another user's reaction.

public Task DeleteReactionAsync(DiscordEmoji emoji, DiscordUser user, string reason = null)

Parameters

emoji DiscordEmoji

Emoji for the reaction you want to remove, either an emoji or name:id.

user DiscordUser

Member you want to remove the reaction for

reason string

Reason for audit logs.

Returns

Task

Exceptions

UnauthorizedException

Thrown when the client does not have the ManageMessages permission.

NotFoundException

Thrown when the emoji does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.