hsh-survive-discord-1
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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

Note: you have to click on the BLUE LINK, not the 'Play' button, in order to start the activity !


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

Package Sidebar

Install

npm i hsh-survive-discord-1

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

13 kB

Total Files

7

Last publish

Collaborators

  • kanosume