The bot will send a message to a channel of your choice when a message is deleted. Shows where it was deleted. Does not show the content of the deleted message.
// authenticates you with the API standard library
// type `await lib.` to display API autocomplete
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
const event = context.params.event;
await lib.discord.channels['@0.2.0'].messages.create({
channel_id: `log channel ID`,
content: `Message deleted in <#${context.params.event.channel_id}>`,
});