3.2.1 • Published 4 years ago
discord-vcactivities v3.2.1
📂 | Installation
npm install discordjs-activity
# (or)
yarn add discordjs-activity
📜 | Setup
const { Client } = require("discord.js")//Importing client
const client = new Client();//Creating a new discord.js client
const start = require("discord-vcactivities")//Importing this package and initiating it with the client
start(client)
✍ | Examples
const { Client } = require("discord.js")//Importing client
const client = new Client()//Creating a new discord.js client
const VoiceChannel = require("discordjs-activity")//Importing this package and initiating it with the client
client.on("message", async (message) => {
if(message.author.bot) return;
if(message.content === "youtube"){
let id = message.member.voice.channel.id;
let VoiceChannel = message.guild.channels.cache.get(id)//Voice Channel ID
//You can also set this to your Voice Channel ID.
let Invite = await VoiceChannel.activityInvite("755600276941176913")//Youtube Together Application ID
message.channel.send("https://discord.com/invite/"+Invite.code)// Send's the invite link in the channel
}
})
client.login("Bot Token")
✨ | Application IDs
Poker Night
Client ID: 755827207812677713
Betrayal.io
Client ID: 773336526917861400
YouTube Together
Client ID: 755600276941176913
Fishington.io
Client ID: 814288819477020702
Chess in the Park
Client ID: 832012774040141894
Chess in the Park Development
Client ID: 832012586023256104