GuildEmojisManager

GuildEmojisManager

Manages all emojis within a guild.

Constructor

new GuildEmojisManager(client, guild)

Description:
  • Creates a guild emoji manager.

Source:
Parameters:
Name Type Description
client Client

The client instance.

guild Guild

The guild that this emoji manager belongs to.

Methods

(async) fetch(emojiId) → {Promise.<Emoji>}

Description:
  • Fetches a particular emoji that belongs to this guild.

Source:
Parameters:
Name Type Description
emojiId String

The id of the emoji to fetch.

Throws:
TypeError | Error
Returns:

The fetched emoji.

Type
Promise.<Emoji>

set(id, emoji) → {Emoji}

Description:
  • Adds an emoji to the cache.

Source:
Parameters:
Name Type Description
id String

The ID of the emoji to cache.

emoji Emoji

The emoji to cache.

Throws:
TypeError
Returns:
Type
Emoji