1.5.0 • Published 2 years ago

kayano-discordjs-activity v1.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

📂 | Installation

npm install kayano-kayano-discordjs-activity
# (or)
yarn add kayano-kayano-discordjs-activity

📜 | Setup

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

✍ | Examples

require("kayano-discordjs-activity")//Import first
const { Client } = require("discord.js")
const client = new 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("youtube_together")//Application Name [youtube_together, fishington, chess_in_the_park, betrayal, poker_night, chess_in_the_park_dev]
        if(Invite) {
          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 Info

Poker Night

Application Name: poker_night

Client ID: 755827207812677713 npm.io

Betrayal.io

Application Name: betrayal

Client ID: 773336526917861400 npm.io

YouTube Together

Application Name: youtube_together

Client ID: 755600276941176913 npm.io

Watch Togeter Dev

Application Name: watch_together_dev

Client ID: 880218832743055411 npm.io

Fishington.io

Application Name: fishington

Client ID: 814288819477020702 npm.io

Chess in the Park

Application Name: chess_in_the_park

Client ID: 832012774040141894 npm.io

Chess in the Park Development

Application Name: chess_in_the_park_dev

Client ID: 832012586023256104 npm.io

Doodle Crew

Application Name: doodlecrew

Client ID: 878067389634314250 npm.io

Word Snacks

Application Name: wordsnacks

Client ID: 879863976006127627 npm.io

Letter Tile

Application Name: lettertile

Client ID: 879863686565621790 npm.io

And much more...

👥 | Support Server