🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Book a DemoInstallSign in
Socket

discord-together

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-together

Play games or watch YouTube videos together on Discord! More than 23 games available!

1.4.2
latest
Source
npm
Version published
Weekly downloads
629
-10.14%
Maintainers
3
Weekly downloads
 
Created
Source

Discord Together

NPM
Made with JavaScript
Downloads

Discord Together

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.

ðŸ”Đ Installation

Install discord-together

npm install discord-together@latest

Install discord.js

npm install discord.js@latest

Supports all versions of Discord.js

🔑 Features

  • 🚀 Easy to use
  • 🌐 Multiple server support
  • 🛠ïļ Works with all Discord.js versions
  • ðŸŽŪ 23+ games and activities
  • ðŸŠķ Lightweight and type-safe
  • ðŸĪ Actively maintained
  • ðŸ“Ķ Extendable configuration

📚 Table of Contents

ðŸ’ŧ Basic Example

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');

📝 API Reference

DiscordTogether class

Constructor

new 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.

Methods

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).
  • Returns: An object with the invite code and the full invite URL.

createDiscordTogether factory

import { createDiscordTogether } from "discord-together";

const createTogetherCode = createDiscordTogether(client, applications);
  • Returns the createTogetherCode function directly for functional usage.

⚙ïļ Advanced Usage

Custom Application Config

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);

Factory Usage

import { createDiscordTogether } from "discord-together";

// Returns the createTogetherCode function
const createTogetherCode = createDiscordTogether(client, applications);

ðŸŽŪ All Available Games

KeyDescription
youtubeYouTube Together
youtubedevYouTube Dev
pokerPoker Night
betrayalBetrayal.io
fishingFishington.io
chessChess in the Park
chessdevChess Dev
lettertileLetter Tile
wordsnackWord Snack
doodlecrewDoodle Crew
awkwordAwkword
spellcastSpellCast
checkersCheckers in the Park
puttpartyPutt Party
sketchheadsSketch Heads
ochoOcho
puttpartyqaPutt Party QA
sketchyartistSketchy Artist
landLand
memeMeme
askawayAsk Away
bobbleBobble
bashoutBash Out

🌌 Example of Bots Made with Discord Together

📝 License & Credits

  • License: MIT
  • Author: RemyK
  • Special thanks: Ayomits for the TypeScript rewrite, and all contributors and community members!

This package is not affiliated with Discord Inc. or YouTube Inc.

💎 Support

If you have any problems or questions, feel free to contact RemyK.

Made with âĪ by RemyK

Keywords

discord activities

FAQs

Package last updated on 10 Jul 2025

Did you know?

Socket

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.

Install

Related posts