Table of Contents

Method DeleteOwnReactionAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DeleteOwnReactionAsync(DiscordEmoji)

Deletes your own reaction

public Task DeleteOwnReactionAsync(DiscordEmoji emoji)

Parameters

emoji DiscordEmoji

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

Returns

Task

Exceptions

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.

DeleteOwnReactionAsync(ulong)

Deletes your own reaction

public Task DeleteOwnReactionAsync(ulong emojiId)

Parameters

emojiId ulong

Emoji id for the reaction you want to remove

Returns

Task

Remarks

This overload only works with guild or application emoji

Exceptions

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.