this snippet is used to set your bot stay voice channel. This will use a lot of requests! Change the scheduler event trigger if you want it to happen less often.
// authenticates you with the API standard library
// type `await lib.` to display API autocomplete
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
await lib.discord.voice['@0.0.1'].channels.join({
channel_id: `${process.env.voice_id}`,
guild_id: `${process.env.guild_id}`,
});
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: `${process.env.logChannel}`,
content: ``, // required
embed: {
title: `π stay vc status`,
description: `\n π |** GUILD ID **\n\`\`\`js\n${process.env.guild_id}\`\`\`\nπ | ** VOICE CHANNEL ID **\n\`\`\`js\n${process.env.voice_id}\`\`\`\nπ‘ | ** JOIN STATUS **\n\`\`\`js\nβ
Connected\`\`\`\n`,
color: 0xfff954,
},
});