EmojiCreateCommand
Triggers when an emoji is created in a guild. Placeholders can be used to retrieve data from the created emoji.

Placeholders: 8

  1. 1.
    {id} - emoji id
  2. 2.
    {name} - emoji name
  3. 3.
    {url} - emoji mention
  4. 4.
    {emoji} - emoji image url
  5. 5.
    {isanimated} - true or false
  6. 6.
    {guildid} - guild id of where the emoji is created
  7. 7.
    {guildname} guild name of where the emoji is created
  8. 8.
    {created} - date of the creation of the emoji

Example 1: The event placed in the main file.

1
bot.EmojiCreateCommand({
2
name: "$getServerVar[channel]",
3
code: `
4
{emoji} was created in {guildname}
5
`
6
})
7
bot.onEmojiCreate()
Copied!

Example 2: The event placed in the event handler (its own file)

bot.onEmojiCreate() - Goes in the main file to be able to call the event!
1
module.exports.EmojiCreateCommand = ({
2
name: "$getServerVar[channel]",
3
code: `
4
{emoji} was created in {guildname}
5
`
6
})
Copied!
Last modified 5mo ago
Copy link