Prefix command that creates a new unique channel and sends a message to it
// authenticates you with the API standard library
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
if (context.params.event.content === '!newchannel') {
let newChannel = await lib.discord.guilds['@0.1.0'].channels.create({
guild_id: `${context.params.event.guild_id}`,
name: `new-channel-${context.params.event.timestamp}`
});
await lib.discord.channels['@0.1.0'].messages.create({
channel_id: `${newChannel.id}`,
content: `https://media1.tenor.com/images/4324d537dbc06f422b34ae131c7b3e14/tenor.gif?itemid=7755460`
});
}