class Discordrb::VoiceRegion

Voice regions are the locations of servers that handle voice communication in Discord

Attributes

custom[R]

@return [true, false] whether this is a custom voice region (used for events/etc)

deprecated[R]

@return [true, false] whether this is a deprecated voice region (avoid switching to these)

id[R]

@return [String] unique ID for the region

name[R]

@return [String] name of the region

optimal[R]

@return [true, false] if this voice server is the closest to the client

sample_hostname[R]

@return [String] an example hostname for the region

sample_port[R]

@return [Integer] an example port for the region

to_s[R]

@return [String] unique ID for the region

vip[R]

@return [true, false] if this is a VIP-only server

Public Class Methods

new(data) click to toggle source
# File lib/discordrb/data/voice_region.rb, line 31
def initialize(data)
  @id = data['id']

  @name = data['name']

  @sample_hostname = data['sample_hostname']
  @sample_port = data['sample_port']

  @vip = data['vip']
  @optimal = data['optimal']
  @deprecated = data['deprecated']
  @custom = data['custom']
end