
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
discord-together
Advanced tools
Play games or watch YouTube videos together on Discord! More than 23 games available!
A simple, type-safe, and lightweight Node.js library to generate Discord Together invite links for over 23+ activities and games, supporting all versions of discord.js.
npm install discord-together@latest
npm install discord.js@latest
Supports all versions of Discord.js
A simple example using this package with Discord.js v14+:
import { Client, GatewayIntentBits } from 'discord.js';
import { DiscordTogether } from 'discord-together';
const client = new Discord.Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] });
const togetherInstance = new DiscordTogether(client);
client.on('messageCreate', async message => {
if (message.content === 'start') {
if(message.member.voice.channel) {
togetherInstance.createTogetherCode(message.member.voice.channel.id, 'chess').then(async res => {
return message.channel.send(`${res.invite}`);
})
};
};
});
client.login('TOKEN');
DiscordTogether
classnew DiscordTogether(client: Client, applications?: ApplicationConfig)
client
: Your Discord.js client instance (must be logged in).applications
(optional): Custom application config. Defaults to built-in games.createTogetherCode(channelId: Snowflake, application: string): Promise<{ code: string, invite: string }>
channelId
: The ID of the voice channel.application
: The key of the game/activity (see Available Games).createDiscordTogether
factoryimport { createDiscordTogether } from "discord-together";
const createTogetherCode = createDiscordTogether(client, applications);
createTogetherCode
function directly for functional usage.You can extend or override the default games with your own:
import { createApplicationConfig, DefaultApplicationsConfig, DiscordTogether } from "discord-together";
// Extend the default config with your own games
const extendedConfig = createApplicationConfig(
{ monopoly: "your_snowflake_id" },
{ extends: [DefaultApplicationsConfig] }
);
const instance = new DiscordTogether(client, extendedConfig);
import { createDiscordTogether } from "discord-together";
// Returns the createTogetherCode function
const createTogetherCode = createDiscordTogether(client, applications);
Key | Description |
---|---|
youtube | YouTube Together |
youtubedev | YouTube Dev |
poker | Poker Night |
betrayal | Betrayal.io |
fishing | Fishington.io |
chess | Chess in the Park |
chessdev | Chess Dev |
lettertile | Letter Tile |
wordsnack | Word Snack |
doodlecrew | Doodle Crew |
awkword | Awkword |
spellcast | SpellCast |
checkers | Checkers in the Park |
puttparty | Putt Party |
sketchheads | Sketch Heads |
ocho | Ocho |
puttpartyqa | Putt Party QA |
sketchyartist | Sketchy Artist |
land | Land |
meme | Meme |
askaway | Ask Away |
bobble | Bobble |
bashout | Bash Out |
This package is not affiliated with Discord Inc. or YouTube Inc.
If you have any problems or questions, feel free to contact RemyK.
Made with âĪ by RemyK
FAQs
Play games or watch YouTube videos together on Discord! More than 23 games available!
The npm package discord-together receives a total of 565 weekly downloads. As such, discord-together popularity was classified as not popular.
We found that discord-together demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600Ã faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.