3.2.1 • Published 4 years ago

discord-vcactivities v3.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

📂 | 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 npm.io

Betrayal.io

Client ID: 773336526917861400 npm.io

YouTube Together

Client ID: 755600276941176913 npm.io

Fishington.io

Client ID: 814288819477020702 npm.io

Chess in the Park

Client ID: 832012774040141894 npm.io

Chess in the Park Development

Client ID: 832012586023256104 npm.io

Even more coming soon

3.2.1

4 years ago

3.2.0

4 years ago

2.2.1

4 years ago

2.1.0

4 years ago

2.0.5

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.5

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago