Skip to main content

A 3rd party library to use discord's VC Party Games feature with disnake

Project description

disnake-together

Table of Contents

About

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

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(client)


@client.command()
async def youtubeTogether(self, ctx):
    togetherControl = DiscordTogether(self.client)
    # 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

Contributing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

disnake_together-1.0.3.tar.gz (5.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page