Method CreateApplicationEmojiAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
CreateApplicationEmojiAsync(string, Stream, CancellationToken)
Creates an application emoji.
public Task<DiscordApplicationEmoji> CreateApplicationEmojiAsync(string name, Stream image, CancellationToken cancellationToken = default)
Parameters
namestringThe name.
imageStreamThe image.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.