new discordPlayTogether(client, applicationsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
client | Client | The discord client | |
applications | defaultApplicationsOptions | <optional> | The applications you can use |
- Source
Members
applications :defaultApplicationsOptions
The applications
- Source
client :Client
The discord client
Type:
- Client
- Source
Methods
(async) createCode(voiceChannel, options) → {returnData}
Create a code to use discord together
Parameters:
Name | Type | Description |
---|---|---|
voiceChannel | Snowflake | The channel where you can play |
options | defaultActivityOptions | The options for the activity |
- Source
Returns:
The code data
- Type:
- returnData
Example
createCode(881574779654651954, {
activity: "youtube",
duration: 86400,
neverExpire: False,
maxUses: 0
})