Class: RubyCord::Guild::VoiceRegion

Inherits:
DiscordModel show all
Defined in:
lib/rubycord/guild/voice_region.rb

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.



23
24
25
# File 'lib/rubycord/guild/voice_region.rb', line 23

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.



20
21
22
# File 'lib/rubycord/guild/voice_region.rb', line 20

def deprecated
  @deprecated
end

#idRubyCord::Snowflake (readonly)

Returns The ID of the voice region.

Returns:



10
11
12
# File 'lib/rubycord/guild/voice_region.rb', line 10

def id
  @id
end

#nameString (readonly)

Returns The name of the voice region.

Returns:

  • (String)

    The name of the voice region.



12
13
14
# File 'lib/rubycord/guild/voice_region.rb', line 12

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.



17
18
19
# File 'lib/rubycord/guild/voice_region.rb', line 17

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.



14
15
16
# File 'lib/rubycord/guild/voice_region.rb', line 14

def vip
  @vip
end