Appearance
GuildEmoji
Package: @erinjs/core
Represents a custom emoji in a guild.
Constructor
| Name | Type | Optional | Description |
|---|---|---|---|
client | Client | No | |
data | any | No | API emoji from GET /guilds/{id}/emojis or guild emoji events |
guildId | string | No |
Properties
| Name | Type | Readonly | Optional | Description |
|---|---|---|---|---|
animated | boolean | Yes | No | |
client | Client | Yes | No | |
guildId | string | Yes | No | |
id | string | Yes | No | |
identifier | string | Yes | No | Emoji identifier for use in reactions: name:id |
name | string | No | No | |
url | string | Yes | No | CDN URL for this emoji image. |
Methods
delete() async
Delete this emoji. Requires Manage Emojis and Stickers permission.
Returns: Promise<void>
Parameters:
None
edit() async
Edit this emoji's name. Requires Manage Emojis and Stickers permission.
Returns: Promise<GuildEmoji>
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
options | { name: string; } | No |