Manages API methods for GuildEmojis and stores their cache.
Extends
BaseGuildEmojiManagerThe cache of items for this manager.
Inherited from DataManagerThe client that instantiated this Manager
Inherited from BaseManagerThe data structure belonging to this manager.
Inherited from DataManagerCreates a new custom emoji in the guild.
Returns
The created emojiExample
Example
Name | Type | Optional | Description |
---|---|---|---|
options | GuildEmojiCreateOptions | No | Options for creating the emoji |
Deletes an emoji.
Name | Type | Optional | Description |
---|---|---|---|
emoji | EmojiResolvable | No | The Emoji resolvable to delete |
reason | string | Yes | Reason for deleting the emoji |
Edits an emoji.
Name | Type | Optional | Description |
---|---|---|---|
emoji | EmojiResolvable | No | The Emoji resolvable to edit |
options | GuildEmojiEditOptions | No | The options to provide |
Obtains one or more emojis from Discord, or the emoji cache if they're already available.
Example
Example
Name | Type | Optional | Description |
---|---|---|---|
id | Snowflake | No | The emoji's id |
options | BaseFetchOptions | Yes | Additional options for this fetch |
Fetches the author for this emoji
Name | Type | Optional | Description |
---|---|---|---|
emoji | EmojiResolvable | No | The emoji to fetch the author of |
Resolves an EmojiResolvable to an Emoji object.
Name | Type | Optional | Description |
---|---|---|---|
emoji | EmojiResolvable | No | The Emoji resolvable to identify |
Resolves an EmojiResolvable to an Emoji id string.
Name | Type | Optional | Description |
---|---|---|---|
emoji | EmojiResolvable | No | The Emoji resolvable to identify |
Resolves an EmojiResolvable to an emoji identifier.
Returns
Name | Type | Optional | Description |
---|---|---|---|
emoji | EmojiIdentifierResolvable | No | The emoji resolvable to resolve |