Methods
(async) connect(PlayerConnectionOptions)
Find or create a connection.
Parameters:
Name | Type | Description |
---|---|---|
PlayerConnectionOptions |
Object | PlayerConnectionOptions. |
- Source:
(async) createPlayer(interaction)
Get or create a AudioPlayer.
Parameters:
Name | Type | Description |
---|---|---|
interaction |
Object | Interaction object (Message|Interaction). |
- Source:
getPlaylist(interaction)
Get the guild player playlist.
Parameters:
Name | Type | Description |
---|---|---|
interaction |
Object | Interaction object (Message|Interaction). |
- Source:
pause(interaction)
Pause music playback.
Parameters:
Name | Type | Description |
---|---|---|
interaction |
Object | Interaction object (Message|Interaction). |
- Source:
(async) play(query, interaction)
Play a song.
Parameters:
Name | Type | Description |
---|---|---|
query |
String | Song title or playlist link. |
interaction |
Object | Interaction object (Message|Interaction). |
- Source:
(async) resume(interaction)
Resumes music playback.
Parameters:
Name | Type | Description |
---|---|---|
interaction |
Object | Interaction object (Message|Interaction). |
- Source:
(async) search(query, interaction, cb)
Search a song or playlist.
Parameters:
Name | Type | Description |
---|---|---|
query |
String | Song title or playlist link. |
interaction |
Object | Interaction object (Message|Interaction). |
cb |
search~Callback | The callback that handles the response |
- Source:
(async) searchPlaylist(query, interaction, cb)
Search a playlist.
Parameters:
Name | Type | Description |
---|---|---|
query |
String | playlist link or title. |
interaction |
Object | Interaction object (Message|Interaction). |
cb |
searchPlaylist~Callback | The callback that handles the response |
- Source:
(async) skip(interaction)
Skip to the next song.
Parameters:
Name | Type | Description |
---|---|---|
interaction |
Object | Interaction object (Message|Interaction). |
- Source: