class Discorb::VoiceRegion

Represents a voice region.

Attributes

custom[R]

@return [Boolean] Whether the voice region is custom.

custom?[R]

@return [Boolean] Whether the voice region is custom.

deprecated[R]

@return [Boolean] Whether the voice region is deprecated.

deprecated?[R]

@return [Boolean] Whether the voice region is deprecated.

id[R]

@return [Discorb::Snowflake] The ID of the voice region.

name[R]

@return [String] The name of the voice region.

optimal[R]

@return [Boolean] Whether the voice region is optimal.

optimal?[R]

@return [Boolean] Whether the voice region is optimal.

vip[R]

@return [Boolean] Whether the voice region is VIP.

vip?[R]

@return [Boolean] Whether the voice region is VIP.

Public Class Methods

new(data) click to toggle source

@!visibility private

# File lib/discorb/voice_state.rb, line 242
def initialize(data)
  @id = data[:id]
  @name = data[:name]
  @vip = data[:vip]
  @optimal = data[:optimal]
  @deprecated = data[:deprecated]
  @custom = data[:custom]
end