Skip to content

GuildEmojiManager

GuildEmojiManager ⇐ EmojiManager

Represents a manager for guild emojis.

Kind: global class
Extends: EmojiManager

new GuildEmojiManager(guildId, client)

Constructs a new instance of the class.

ParamTypeDescription
guildIdstringThe ID of the guild.
clientClientThe client object.

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

Adds emojis to the guild’s emoji collection.

Kind: instance method of GuildEmojiManager
Returns: Promise - A promise that resolves when the emojis are added.

ParamTypeDefaultDescription
emojisArrayThe emojis to add.
[options]ObjectAdditional options for adding emojis.
[options.cache]booleantrueWhether to cache the added emojis.
[options.force]booleanfalseWhether to force the addition of emojis.