<div align="center">
  <h1>discordjs-activity</h1>
  <p>An simple package to create an Activity in Discord Voice Channel using Discord.js</p>
  <p>
    <a href="https://www.npmjs.com/package/discordjs-activity"><img src="https://img.shields.io/npm/v/discordjs-activity?maxAge=3600" alt="NPM version" /></a>
    <a href="https://www.npmjs.com/package/discordjs-activity"><img src="https://img.shields.io/npm/dt/discordjs-activity?maxAge=3600" alt="NPM downloads" /></a>
  </p>
  <p>
    <a href="https://www.npmjs.com/package/discordjs-activity"><img src="https://nodei.co/npm/discordjs-activity.png?downloads=true&stars=true" alt="NPM Banner"></a>
  </p>
</div>
<div align="center">
  <img src="https://media.discordapp.net/attachments/749254970003423345/849884191474057237/YPNTiGwhTl0AAAAASUVORK5CYII.png">
  <br>
</div>

## 📂 | Installation
```sh
npm install discordjs-activity
# (or)
yarn add discordjs-activity
```

## 📜 | Setup
```js
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
```js
require("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](https://github.com/SudhanPlayz/discordjs-activity/blob/master/example.js)
If you have any other problems/questions, you can join our [Support Server!](https://discord.gg/sbySMS7m3v)

## ✨ | Application Info
### Poker Night
Application Name: `poker_night`

Client ID: `755827207812677713`
![](https://cdn.discordapp.com/attachments/749254970003423345/849889747794657290/unknown.png)
### Betrayal.io
Application Name: `betrayal`

Client ID: `880218394199220334`
![](https://media.discordapp.net/attachments/749254970003423345/849891725144752178/unknown.png)
### YouTube Together
Application Name: `youtube_together`

Client ID: `755600276941176913`
![](https://media.discordapp.net/attachments/749254970003423345/849889254327058442/unknown.png)
### Watch Together Dev
Application Name: `watch_together_dev`

Client ID: `880218832743055411`
![](https://cdn.discordapp.com/attachments/859074807132192769/891890625153224755/unknown.png)
### Fishington.io
Application Name: `fishington`

Client ID: `814288819477020702`
![](https://cdn.discordapp.com/attachments/749254970003423345/849892686160592937/unknown.png)
### Chess in the Park
Application Name: `chess_in_the_park`

Client ID: `832012774040141894`
![](https://cdn.discordapp.com/attachments/792153217344995368/872214312163377182/unknown.png)
### Chess in the Park Development
Application Name: `chess_in_the_park_dev`

Client ID: `832012586023256104`
![](https://cdn.discordapp.com/attachments/792153217344995368/872215200147832902/unknown.png)
### Doodle Crew
Application Name: `doodlecrew`

Client ID: `878067389634314250`
![](https://cdn.discordapp.com/attachments/859074807132192769/891888361441210398/unknown.png)
### Word Snacks
Application Name: `wordsnacks`

Client ID: `879863976006127627`
![](https://cdn.discordapp.com/attachments/859074807132192769/891889448604807209/unknown.png)
### Letter Tile
Application Name: `lettertile`

Client ID: `879863686565621790`
![](https://cdn.discordapp.com/attachments/859074807132192769/891889864973377546/unknown.png)
*Even more coming soon in future*

<br>
<br>

## 👥 | Support Server
<p align="center" style="text-align: center;">
  <a href="https://youtube.com/CodingWithSudhan?sub_confirmation=1"><img src="https://raw.githubusercontent.com/MikeCodesDotNET/ColoredBadges/master/png/streaming/youtube%402x.png"></a>
  <a href="https://discord.gg/sbySMS7m3v"><img src="https://discord.com/api/guilds/855346696258060338/widget.png?style=banner2"></a>
</p>
