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?, #hash

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.



243
244
245
# File 'lib/discorb/voice_state.rb', line 243

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.



240
241
242
# File 'lib/discorb/voice_state.rb', line 240

def deprecated
  @deprecated
end

#id -> Discorb::Snowflake (readonly)

Returns The ID of the voice region.

Returns:



230
231
232
# File 'lib/discorb/voice_state.rb', line 230

def id
  @id
end

#name -> String (readonly)

Returns The name of the voice region.

Returns:

  • (String)

    The name of the voice region.



232
233
234
# File 'lib/discorb/voice_state.rb', line 232

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.



237
238
239
# File 'lib/discorb/voice_state.rb', line 237

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.



234
235
236
# File 'lib/discorb/voice_state.rb', line 234

def vip
  @vip
end