class BaseGuildEmoji
extends
Emojiexport class BaseGuildEmoji extends Emoji
Parent class for GuildEmoji and GuildPreviewEmoji.
readonlyDate createdAt :
The time the emoji was created at, or null if unicode
readonlynumber createdTimestamp :
The timestamp the emoji was created at, or null if unicode
Guild | GuildPreview guild :
The guild this emoji is a part of
Snowflake id :
The emoji's id
imageURLoptions?: BaseImageURLOptions) : string (
options?: BaseImageURLOptions
Returns a URL for the emoji.
toStringstring () :
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