RadioClient

new RadioClient(client)

Create a new radio Client

Parameters:
NameTypeDescription
clientobject

The discord.js client

Methods

(async) connectTo(voice, guild) → {VoiceConnection}

Join a voice channel

Parameters:
NameTypeDescription
voiceobject

The member's voice state.voice

guildobject

The discord.js guild

Returns:
Type: 
VoiceConnection

(async) startPlaying(resource, guild) → {AudioPlayer}

Start playing a station in your voice channel

Parameters:
NameTypeDescription
resourcestring

The MP3 link of your radio channel.

guildobject

the guild

Returns:
Type: 
AudioPlayer