class BaseGuildEmoji
extends
Emojiexport class BaseGuildEmoji extends EmojiParent class for GuildEmoji and GuildPreviewEmoji.
animated : boolean
Whether or not the emoji is animated
readonlycreatedAt : Date
The time the emoji was created at.
readonlycreatedTimestamp : number
The timestamp the emoji was created at.
guild : Guild | GuildPreview
The guild this emoji is a part of
id : Snowflake
The emoji's id
readonlyidentifier : string
The identifier of this emoji, used for message reactions
Inherited from: Emoji
managed : boolean
Whether this emoji is managed by an external service
name : string
The emoji's name
imageURL(options?: EmojiURLOptions) : string
options?: EmojiURLOptions
Returns a URL for the emoji.
toString() : string
When concatenated with a string, this automatically returns the text required to form a graphical emoji on Discord instead of the Emoji object.
Examples:
// Send a custom emoji from a guild:
const emoji = guild.emojis.cache.first();
msg.channel.send(`Hello! ${emoji}`);// Send the emoji used in a reaction to the channel the reaction is part of
reaction.message.channel.send(`The emoji used was: ${reaction.emoji}`);Inherited from: Emoji