Class: LibDiscord::Voice

Inherits:
Resource show all
Defined in:
lib/lib_discord/voice.rb

Overview

Voice Resource

Do not instantiate a Voice directly. Instead request one from an instance of Client.

client = LibDiscord::Client.new("Bot auth.token")
v = client["voice"]

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from LibDiscord::Resource

Instance Method Details

#list_voice_regionsResponse

Returns:

Raises:

See Also:



25
26
27
# File 'lib/lib_discord/voice.rb', line 25

def list_voice_regions
  send_request(:get, "/voice/regions")
end