DB-Script
Discord Server
NPM
Search…
DB-Script
Getting Started
NPM Updates
Known Bugs
Functionalities
Bot Functions
Events
BanCommand
BotJoinCommand
BotLeaveCommand
ChannelCreateCommand
ChannelDeleteCommand
ChannelUpdateCommand
EmojiCreateCommand
EmojiDeleteCommand
GuildUpdateCommand
JoinedCommand
LeaveCommand
LoopCommand
MessageDeleteCommand
MessageEditEvent
RateLimitCommand
ReadyCommand
ReactionAddCommand
ReactionRemoveCommand
RoleCreateCommand
RoleDeleteCommand
UnbanCommand
UserUpdateCommand
Functions
Guides
Other
Contributors
Discord Server
FAQs
Staff
Powered By
GitBook
EmojiDeleteCommand
Triggers when an emoji is deleted from a guild. Placeholders can be used to retrieve data from the deleted emoji.
​
Placeholders: 8
1.
{id}
- emoji id
2.
{name}
- emoji name
3.
{url}
- emoji mention
4.
{isanimated}
- true or false
5.
{guildid}
- guild id of where the emoji is created
6.
{guildname}
guild name of where the emoji is created
7.
{created}
- date of the creation of the emoji
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!
Previous
EmojiCreateCommand
Next
GuildUpdateCommand
Last modified
11mo ago
Copy link
Contents
Placeholders: 8