Class
GuildSticker
Represents a custom sticker in a guild.
Extends Base
Constructor
new GuildSticker
(client: Client, data: APISticker & { guild_id?: string }, guildId: string)| Param | Type | Description |
|---|---|---|
| client | Client | |
| data | APISticker & { guild_id?: string } | API sticker from GET /guilds/{id}/stickers or guild sticker events |
| guildId | string |
Properties
animated
: boolean (readonly)client
: Client (readonly)description
: stringguildId
: string (readonly)id
: string (readonly)name
: stringnsfw
: booleanWhether this sticker is classified as NSFW
url
: string (readonly)CDN URL for this sticker image.
Methods
delete
(): Promise<void>Delete this sticker. Requires Manage Emojis and Stickers permission.
edit
(options: { name?: string; description?: string; }): Promise<GuildSticker>Edit this sticker's name and/or description. Requires Manage Emojis and Stickers permission.
| Param | Type | Description |
|---|---|---|
| options | { name?: string; description?: string; } |