/disnake-together

Primary LanguagePythonMIT LicenseMIT

disnake-together

Table of Contents

About

A 3rd party library for Discord's BETA feature of VC Party Games

Installation

Install the library using

pip install disnake-together

Prerequisites

You should have disnake installed in order to use this package
To install disnake, run the following code in a terminal

pip install disnake

Examples

Generate a link for YouTube Together

from disnake.ext import commands
from disnake_together import disnakeTogether

client = commands.Bot(command_prefix="*")
togetherControl = disnakeTogether.DisnakeTogether(client)

@client.command()
async def youtubeTogether(ctx):
        # To check if the user is in a vc
        try:
            vc = ctx.author.voice.channel.id
        
        except:
            await ctx.channel.send("You are not in a VC, please join one and then use the command")
        # Get invite link
        link = await togetherControl.create_link(vc, 'youtube')
        await ctx.send(f"Click the link 👇\n{link}")

You can replace youtube with the other interactions i.e betrayal, chess, fishing, poker