Discord.js Together
A simple package for Discord.JS for creating activities invites.
📌 Installing
With NPM
npm install discord.js-together
With yarn
yarn add discord.js-together
Note: This package uses the lastest version of Discord.JS
🔌 Usage
For creating any invite, you can only do that with VoiceChannel structure, in other words you can't create this invites in StageChannels.
Example coding:
require('discord.js-together')
const { Client } = require('discord.js');
const client = new Client();
client.on('ready', () => {
const channel = client.channels.cache.get('Your voice channel ID.');
channel.createYoutubeTogetherInvite()
.then(invite => console.log(invite.url));
});
client.on('messageCreate', message => {
message.member.voice.channel.createYoutubeTogetherInvite()
.then(invite => message.reply(invite.url));
});
client.login('Your Discord Bot token here.');
📚 Documentation
Note: All functions returns a promise with Invite structure.
VoiceChannel.createYoutubeTogetherInvite(options)
VoiceChannel.createPokerInvite(options)
VoiceChannel.createBetrayalInvite(options)
VoiceChannel.createFishingInvite(options)
VoiceChannel.createChessInvite(options)
VoiceChannel.createLetterTileInvite(options)
VoiceChannel.createWordSnackInvite(options)
VoiceChannel.createDoodleCrewInvite(options)
VoiceChannel.createAwkwordInvite(options)
VoiceChannel.createSpellCastInvite(options)
VoiceChannel.createCheckersInvite(options)
VoiceChannel.createPuttPartyInvite(options)
VoiceChannel.createSketchHeadsInvite(options)
VoiceChannel.createOchoInvite(options)