Method CreateReactionAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
CreateReactionAsync(DiscordEmoji)
Creates a reaction to this message.
public Task CreateReactionAsync(DiscordEmoji emoji)
Parameters
emoji
DiscordEmojiThe emoji you want to react with, either an emoji or name:id
Returns
Exceptions
- UnauthorizedException
Thrown when the client does not have the AddReactions 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.