GuildEmojiManager
GuildEmojiManager ⇐ EmojiManager
Section titled “GuildEmojiManager ⇐ EmojiManager”Represents a manager for guild emojis.
Kind: global class
Extends: EmojiManager
- GuildEmojiManager ⇐
EmojiManager- new GuildEmojiManager(guildId, client)
- .cache ⇒
Array - ._add(emojis, [options]) ⇒
Promise
new GuildEmojiManager(guildId, client)
Section titled “new GuildEmojiManager(guildId, client)”Constructs a new instance of the class.
| Param | Type | Description |
|---|---|---|
| guildId | string | The ID of the guild. |
| client | Client | The client object. |
guildEmojiManager.cache ⇒ Array
Section titled “guildEmojiManager.cache ⇒ Array”Retrieves the cache for the current guild.
Kind: instance property of GuildEmojiManager
Returns: Array - An array of objects from the cache that belong to the current guild.
guildEmojiManager._add(emojis, [options]) ⇒ Promise
Section titled “guildEmojiManager._add(emojis, [options]) ⇒ Promise”Adds emojis to the guild’s emoji collection.
Kind: instance method of GuildEmojiManager
Returns: Promise - A promise that resolves when the emojis are added.
| Param | Type | Default | Description |
|---|---|---|---|
| emojis | Array | The emojis to add. | |
| [options] | Object | Additional options for adding emojis. | |
| [options.cache] | boolean | true | Whether to cache the added emojis. |
| [options.force] | boolean | false | Whether to force the addition of emojis. |