.delete()
→ Promise<void>
Delete this sticker. Requires Manage Emojis and Stickers permission.
await sticker.delete();Class
Represents a custom sticker in a guild.
Extends Base
new GuildSticker(client: Client, data: APISticker & { guild_id?: string }, guildId: string)ClientAPISticker & { guild_id?: string }API sticker from GET /guilds/{id}/stickers or guild sticker eventsstring| Name | Type | Description |
|---|---|---|
| animatedread-only | boolean | |
| clientread-only | Client | |
| createdAtread-only | Date | Date when this sticker was created, derived from its snowflake ID. |
| createdTimestampread-only | number | Unix timestamp (ms) when this sticker was created, derived from its snowflake ID. |
| description | string | |
| guildIdread-only | string | |
| idread-only | string | |
| name | string | |
| nsfw | boolean | Whether this sticker is classified as NSFW |
| tags | string[] | |
| urlread-only | string | CDN URL for this sticker image. |
→ Promise<void>
Delete this sticker. Requires Manage Emojis and Stickers permission.
await sticker.delete();options: { name?: string; description?: string; } → Promise<GuildSticker>
Edit this sticker's name and/or description. Requires Manage Emojis and Stickers permission.
await sticker.edit(options);