This will log when a channel was created. Just fill out the Log channel ID with the channel ID where you want the logs to send.
// 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: `User created new channel`,
});