Method ModifyAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ModifyAsync(Optional<string>, Optional<string>, Optional<string>, string)
Modifies the sticker
public Task<DiscordSticker> ModifyAsync(Optional<string> name, Optional<string> description, Optional<string> tags, string reason = null)
Parameters
name
Optional<string>The name of the sticker
description
Optional<string>The description of the sticker
tags
Optional<string>The name of a unicode emoji representing the sticker's expression
reason
stringAudit log reason
Returns
- Task<DiscordSticker>
A sticker object
Exceptions
- UnauthorizedException
Thrown when the sticker could not be found.
- UnauthorizedException
Thrown when the client does not have the ManageGuildExpressions permission.
- ServerErrorException
Thrown when Discord is unable to process the request.
- ArgumentException
Sticker does not belong to a guild.