Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hsh-survive-discord-1

kanosume14MIT2.0.1TypeScript support: included

Play games or watch YouTube videos together on Discord !

discord activities, discord activity, discord together, discord 2gether, watch2gether, youtube, discord.js, together, discord, youtube, videos, poker

readme

Discord Together

NPM

forthebadge

DL

🔩 Installation

Install discord-together

$ npm install discord-together@latest

Install discord.js

$ npm install discord.js@latest

🔑 Features

  • Easy to use
  • Multiple server
  • Discord support
  • Lightweight

Documentation ➩ coming soon !


💻 Code example

This is a simple example of code using this package.

const Discord = require('discord.js');
const client = new Discord.Client();
const { DiscordTogether } = require('discord-together');

client.discordTogether = new DiscordTogether(client);

client.on('message', async message => {
    if (message.content === 'start') {
        if(message.member.voice.channel) {
            client.discordTogether.createTogetherCode(message.member.voice.channelID, 'poker').then(async invite => {
                return message.channel.send(`${invite.code}`);
            });
        };
    };
});

client.login('your Discord bot token');

🔧 Options

  • Youtube

    client.discordTogether.createTogetherCode(message.member.voice.channelID, 'youtube').then(async invite => {
      return message.channel.send(`${invite.code}`);
    });
  • Poker

    client.discordTogether.createTogetherCode(message.member.voice.channelID, 'poker').then(async invite => {
      return message.channel.send(`${invite.code}`);
    });
  • Chess

    client.discordTogether.createTogetherCode(message.member.voice.channelID, 'chess').then(async invite => {
      return message.channel.send(`${invite.code}`);
    });

    Or

client.discordTogether.createTogetherCode(message.member.voice.channelID, 'chessDev').then(async invite => {
    return message.channel.send(`${invite.code}`);
});
  • Betrayal

    client.discordTogether.createTogetherCode(message.member.voice.channelID, 'betrayal').then(async invite => {
      return message.channel.send(`${invite.code}`);
    });
  • Fishing

    client.discordTogether.createTogetherCode(message.member.voice.channelID, 'fishing').then(async invite => {
      return message.channel.send(`${invite.code}`);
    });
  • Custom application ID

    client.discordTogether.createTogetherCode(message.member.voice.channelID, 'application ID').then(async invite => {
      return message.channel.send(`${invite.code}`);
    });

📷 Image

Invite link


YouTube Together


🌌 Example of bots made with Discord Together

🚀 Others

Thanks a lot to 3chospirits who made the typescript declaration file !

This package is under MIT license.

Note: This package is not affiliated with Discord or YouTube.

If you have any problems, you can contact: RemyK#3876. Discord server: Server Link

Github repository


Made with ❤ by RemyK