GuildEmojiManager

export class GuildEmojiManager extends BaseGuildEmojiManager
export class GuildEmojiManager extends BaseGuildEmojiManager
Manages API methods for GuildEmojis and stores their cache.
Readonly
cache:Collection<K, Holds>
The cache of items for this manager.
Inherited from DataManager
Readonly
client:Client
The client that instantiated this Manager
Inherited from BaseManager
guild:Guild
The guild this manager belongs to
Readonly
holds:Constructable<Holds>
The data structure belonging to this manager.
Inherited from DataManager
create(options):Promise<GuildEmoji>
Creates a new custom emoji in the guild.
Returns
The created emoji
NameTypeOptionalDescription
optionsGuildEmojiCreateOptionsNoOptions for creating the emoji
delete(emoji, reason?):Promise<void>
Deletes an emoji.
NameTypeOptionalDescription
emojiEmojiResolvableNoThe Emoji resolvable to delete
reasonstringYesReason for deleting the emoji
edit(emoji, options):Promise<GuildEmoji>
Edits an emoji.
NameTypeOptionalDescription
emojiEmojiResolvableNoThe Emoji resolvable to edit
optionsGuildEmojiEditOptionsNoThe options to provide
fetch(id, options?):Promise<GuildEmoji>
Obtains one or more emojis from Discord, or the emoji cache if they're already available.
NameTypeOptionalDescription
idSnowflakeNoThe emoji's id
optionsBaseFetchOptionsYesAdditional options for this fetch
fetchAuthor(emoji):Promise<User>
Fetches the author for this emoji
NameTypeOptionalDescription
emojiEmojiResolvableNoThe emoji to fetch the author of
resolve(idOrInstance):Holds
Resolves a data entry to a data Object.
Returns
An instance from this Manager
NameTypeOptionalDescription
idOrInstanceHoldsNoThe id or instance of something in this Manager
resolveId(idOrInstance):K
Resolves a data entry to an instance id.
Returns
NameTypeOptionalDescription
idOrInstanceK | HoldsNoThe id or instance of something in this Manager
resolveIdentifier(emoji):string | null
Resolves an EmojiResolvable to an emoji identifier.
Returns
NameTypeOptionalDescription
emojiEmojiIdentifierResolvableNoThe emoji resolvable to resolve
Inherited from BaseGuildEmojiManager
valueOf():Collection<K, Holds>