Skip to content

An simple package to create an Activity in Discord Voice Channel using Discord.js

License

Notifications You must be signed in to change notification settings

Reyansh-Khobragade/discordjs-activity

 
 

Repository files navigation

discordjs-activity

An simple package to create an Activity in Discord Voice Channel using Discord.js

NPM version NPM downloads

NPM Banner


📂 | Installation

npm i discordjs-activity

📜 | Setup

const { Client } = require("discord.js")//Importing client
const client = new Client()//creating a new discord.js client
require("discordjs-activity")(client)//Importing this package and initiating it with the client

✍ | Examples

const { Client } = require("discord.js")
const client = new Client()
require("discordjs-activity")(client)

client.on("message", async (message) => {
    if(message.author.bot)return
    if(message.content === "youtube"){
        let VoiceChannel = client.channels.cache.get("Voice Channel ID")//Voice Channel ID
        let Invite = await VoiceChannel.activityInvite("755600276941176913")//Application ID
        message.channel.send("https://discord.com/invite/"+Invite.code)// send's invite link in the channel
    }
})

client.login("Super secret token")

All of our Examples and activites are in examples.js If you have any other problems/questions, you can join our Support Server!

✨ | Application IDs

Poker Night

Client ID: 755827207812677713

Betrayal.io

Client ID: 773336526917861400

YouTube Together

Client ID: 755600276941176913

Fishington.io

Client ID: 814288819477020702

Even more coming soon



Core Contributers

SudhanPlayz

Reyansh Khobragade

About

An simple package to create an Activity in Discord Voice Channel using Discord.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%