Skip to content

DiscordTogether

Represents DiscordTogether client instance. Needs to be defined in an async function.

Parameters

token
The bot's token to use for Discord API authorization.

Type: str
debug‌ ‌ kwarg-only yes
Debug toggle keyword argument. To be used in case of invalid invites being outputted from DiscordTogether. For more details, check here

Type: bool
Default: False

Methods

create_link(VC_ID, APPLICATION, MAX_AGE=0, MAX_USES=0)
Communicates with Discord API and returns the invite link for the specific application requested.

Refer here for in-dept information.

Parameters:
- VC_ID
The ID of the voice channel that you want to create an invite link to.
- APPLICATION
The choice of application that you want to create an invite for.
- MAX_AGE (kwarg)
Optional duration in seconds after which the invite expires.
- MAX_USES (kwarg)
Optional maximum number of times this invite can be used.

Returns: str

Attributes

default_choices
Returns a list of all the default activity choices that the package offers.

Type: list
Back to top