Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 663 Bytes

bot.onmessagedelete.md

File metadata and controls

28 lines (23 loc) · 663 Bytes

bot.onMessageDelete

This callback allows the bot to log any deleted message

bot.deletedCommand({ //command
    channel: "channel id",
    code: `your code` //Message that will be sent to the channel
})
bot.onMessageDelete() //callback itself

Using the callback

bot.deletedCommand({
    channel: "782446718704812032",
    code: `Message from $username, was deleted in <#$channelUsed>: $message`
    /*
        Code Breakdown
        $username - The user who wrote the message
        $channelUsed - The channel where the message was deleted
        $message - The message that was deleted
    */
})
bot.onMessageDelete()