Sends a message to log channel when anyuser ban someone!
// 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: `${process.env.LOG_CHANNEL_ID}`,//Here past your Channel Logs ID
content: ``,
tts: false,
embed: {
type: 'rich',
title: 'User Banned',
description: `A User Banned Someone!`,
color: 0xf12424,
footer: {
text: 'Need more information? Check audit log!',
},
},
});
//Credit Cycnic