Class: Discorb::VoiceRegion
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::VoiceRegion
- Defined in:
- lib/discorb/voice_state.rb
Overview
Represents a voice region.
Instance Attribute Summary collapse
-
#custom -> Boolean
(also: #custom?)
readonly
Whether the voice region is custom.
-
#deprecated -> Boolean
(also: #deprecated?)
readonly
Whether the voice region is deprecated.
-
#id -> Discorb::Snowflake
readonly
The ID of the voice region.
-
#name -> String
readonly
The name of the voice region.
-
#optimal -> Boolean
(also: #optimal?)
readonly
Whether the voice region is optimal.
-
#vip -> Boolean
(also: #vip?)
readonly
Whether the voice region is VIP.
Method Summary
Methods inherited from DiscordModel
Instance Attribute Details
#custom -> Boolean (readonly) Also known as: custom?
Returns Whether the voice region is custom.
241 242 243 |
# File 'lib/discorb/voice_state.rb', line 241 def custom @custom end |
#deprecated -> Boolean (readonly) Also known as: deprecated?
Returns Whether the voice region is deprecated.
238 239 240 |
# File 'lib/discorb/voice_state.rb', line 238 def deprecated @deprecated end |
#id -> Discorb::Snowflake (readonly)
Returns The ID of the voice region.
228 229 230 |
# File 'lib/discorb/voice_state.rb', line 228 def id @id end |
#name -> String (readonly)
Returns The name of the voice region.
230 231 232 |
# File 'lib/discorb/voice_state.rb', line 230 def name @name end |
#optimal -> Boolean (readonly) Also known as: optimal?
Returns Whether the voice region is optimal.
235 236 237 |
# File 'lib/discorb/voice_state.rb', line 235 def optimal @optimal end |
#vip -> Boolean (readonly) Also known as: vip?
Returns Whether the voice region is VIP.
232 233 234 |
# File 'lib/discorb/voice_state.rb', line 232 def vip @vip end |