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

#custom -> Boolean (readonly) Also known as: custom?

Returns Whether the voice region is custom.

Returns:

  • (Boolean)

    Whether the voice region is custom.



263
264
265
# File 'lib/discorb/voice_state.rb', line 263

def custom
  @custom
end

#deprecated -> Boolean (readonly) Also known as: deprecated?

Returns Whether the voice region is deprecated.

Returns:

  • (Boolean)

    Whether the voice region is deprecated.



260
261
262
# File 'lib/discorb/voice_state.rb', line 260

def deprecated
  @deprecated
end

#id -> Discorb::Snowflake (readonly)

Returns The ID of the voice region.

Returns:



250
251
252
# File 'lib/discorb/voice_state.rb', line 250

def id
  @id
end

#name -> String (readonly)

Returns The name of the voice region.

Returns:

  • (String)

    The name of the voice region.



252
253
254
# File 'lib/discorb/voice_state.rb', line 252

def name
  @name
end

#optimal -> Boolean (readonly) Also known as: optimal?

Returns Whether the voice region is optimal.

Returns:

  • (Boolean)

    Whether the voice region is optimal.



257
258
259
# File 'lib/discorb/voice_state.rb', line 257

def optimal
  @optimal
end

#vip -> Boolean (readonly) Also known as: vip?

Returns Whether the voice region is VIP.

Returns:

  • (Boolean)

    Whether the voice region is VIP.



254
255
256
# File 'lib/discorb/voice_state.rb', line 254

def vip
  @vip
end