EmojiDeleteCommand
Triggers when an emoji is deleted from a guild. Placeholders can be used to retrieve data from the deleted emoji.

Placeholders: 8

  1. 1.
    {id} - emoji id
  2. 2.
    {name} - emoji name
  3. 3.
    {url} - emoji mention
  4. 4.
    {isanimated} - true or false
  5. 5.
    {guildid} - guild id of where the emoji is created
  6. 6.
    {guildname} guild name of where the emoji is created
  7. 7.
    {created} - date of the creation of the emoji
  8. 8.
    {timestamp} - how long ago the emoji was created before deletion

Example 1: The event placed in the main file.

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

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

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