Discord Elixir v1.1.4 DiscordEx.Voice.Client
This client is for specifically working with voice. You can pass this process to your regular client if you wish to use it with your bot.
Examples
token = "<your-token>"
DiscordEx.Voice.Client.connect(base_client, %{guild_id: 392090239, channel_id: 23208203092390)
#=> {:ok, #PID<0.180.0>}
Summary
Functions
Initialize a voice connection
Kill a voice connection
Callback implementation for c::websocket_client.init/1
Callback implementation for c::websocket_client.onconnect/2
Callback implementation for c::websocket_client.ondisconnect/2
Reconnect or initiate voice connection
Callback implementation for c::websocket_client.websocket_handle/3
Ability to update speaking state
Callback implementation for c::websocket_client.websocket_terminate/3
Functions
Specs
connect(pid, map) :: {:ok, pid}
Initialize a voice connection
Specs
reconnect(pid, map) :: {:ok, pid}
Reconnect or initiate voice connection
Callback implementation for c::websocket_client.websocket_handle/3
.