Class: Discorb::VoiceRegion

Inherits:
DiscordModel show all
Defined in:
lib/discorb/voice_state.rb

Overview

Represents a voice region.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#customBoolean (readonly) Also known as: custom?

Returns Whether the voice region is custom.

Returns:

  • (Boolean)

    Whether the voice region is custom.



287
288
289
# File 'lib/discorb/voice_state.rb', line 287

def custom
  @custom
end

#deprecatedBoolean (readonly) Also known as: deprecated?

Returns Whether the voice region is deprecated.

Returns:

  • (Boolean)

    Whether the voice region is deprecated.



284
285
286
# File 'lib/discorb/voice_state.rb', line 284

def deprecated
  @deprecated
end

#idDiscorb::Snowflake (readonly)

Returns The ID of the voice region.

Returns:



274
275
276
# File 'lib/discorb/voice_state.rb', line 274

def id
  @id
end

#nameString (readonly)

Returns The name of the voice region.

Returns:

  • (String)

    The name of the voice region.



276
277
278
# File 'lib/discorb/voice_state.rb', line 276

def name
  @name
end

#optimalBoolean (readonly) Also known as: optimal?

Returns Whether the voice region is optimal.

Returns:

  • (Boolean)

    Whether the voice region is optimal.



281
282
283
# File 'lib/discorb/voice_state.rb', line 281

def optimal
  @optimal
end

#vipBoolean (readonly) Also known as: vip?

Returns Whether the voice region is VIP.

Returns:

  • (Boolean)

    Whether the voice region is VIP.



278
279
280
# File 'lib/discorb/voice_state.rb', line 278

def vip
  @vip
end