new RadioClient(client)
Create a new radio Client
Parameters:
Name | Type | Description |
---|---|---|
client | object | The discord.js client |
Methods
(async) connectTo(voice, guild) → {VoiceConnection}
Join a voice channel
Parameters:
Name | Type | Description |
---|---|---|
voice | object | The member's voice state |
guild | object | The discord.js guild |
Returns:
- Type:
- VoiceConnection
(async) startPlaying(resource, guild) → {AudioPlayer}
Start playing a station in your voice channel
Parameters:
Name | Type | Description |
---|---|---|
resource | string | The MP3 link of your radio channel. |
guild | object | the guild |
Returns:
- Type:
- AudioPlayer