Table of Contents

Method ModifyAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifyAsync(string, CancellationToken)

Modifies this emoji.

public Task<DiscordApplicationEmoji> ModifyAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string

New name for this emoji.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordApplicationEmoji>

The modified 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.