Method DeleteReactionsEmojiAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
DeleteReactionsEmojiAsync(DiscordEmoji)
Deletes all reactions of a specific reaction for this message.
public Task DeleteReactionsEmojiAsync(DiscordEmoji emoji)
Parameters
emoji
DiscordEmojiThe emoji to clear, either an emoji or name:id.
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.
DeleteReactionsEmojiAsync(ulong)
Deletes all reactions of a specific reaction for this message.
public Task DeleteReactionsEmojiAsync(ulong emojiId)
Parameters
emojiId
ulongThe id of the emoji to clear
Returns
- Task
Remarks
This overload only works with guild or application emoji
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.