$emoji
A `Compact Function` pertaining to emojis in guilds the bot is in. Has `11` options to choose from.

FUNCTION USAGE

    $emoji[emojiID;guildID;option]

Properties:

emojiID - Define the emoji you're calling upon with an ID. guildID - The guild ID if where the emoji belongs to. Leave 2nd field blank to define the current guild. option - Define the property by its name.

Options:

    1.
    created
    2.
    emoji
    3.
    guildid
    4.
    guildname
    5.
    id
    6.
    identifier
    7.
    isanimated
    8.
    isdeleted
    9.
    ismanaged
    10.
    name
    11.
    url
undefined is returned when the option data cannot be fetched
created
emoji
guildid
guildname
id
identifier
isanimated
isdeleted
ismanaged
name
url

Returns the date and time at which the emoji was created

Returns the emoji itself.

Returns the guild ID of where the emoji is stationed.

Returns the guild name of where the emoji is stationed.

Returns the emoji ID

Returns the emoji with the name and ID surrounded by colons (:) for easy emoji manipulation.

Returns true if the emoji is animated.

Returns false if the emoji is not animated.

Returns true or false if the emoji has been deleted from the guild.

    True - The emoji has been deleted or does not exist anymore.
    False - The emoji is still active and useable.

Returns true if the emoji is managed by system management.

Example: A Clyde emoji managed from Discord itself.

Returns the name of the emoji.

Returns the image url for the emoji.

Example 1: Fetching the image URL of the emoji.
1
bot.Command({
2
name: "emoji-url",
3
code: `
4
$emoji[394658293759862;$guildID;url]
5
`
6
})
Copied!
Example 2: Fetching emoji data from an actual emoji to make things a little simpler for some.
1
bot.Command({
2
name: "emoji",
3
code: `
4
$emoji[$emojiToID[$message[1]];$guildID;$message[2]]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link