Sha256: b0e3449d15c9f88c81ef6971a71ad723d3aed57cb8ebc24df1a880e42a74b5a6

Contents?: true

Size: 873 Bytes

Versions: 4

Compression:

Stored size: 873 Bytes

Contents

module Discorb
  #
  # Represents a voice region.
  class VoiceRegion < Discorb::DiscordModel
    #
    # Initialize a new instance of the VoiceRegion class.
    # @private
    #
    # @param [Hash] data The data of the voice region.
    def initialize: (Discorb::json data) -> void

    # @return [Discorb::Snowflake] The ID of the voice region.
    attr_reader id: Discorb::Snowflake

    # @return [String] The name of the voice region.
    attr_reader name: String

    # @return [Boolean] Whether the voice region is VIP.
    attr_reader vip: bool

    # @return [Boolean] Whether the voice region is optimal.
    attr_reader optimal: bool

    # @return [Boolean] Whether the voice region is deprecated.
    attr_reader deprecated: bool

    # @return [Boolean] Whether the voice region is custom.
    attr_reader custom: bool
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
discorb-0.20.0 sig/discorb/voice_region.rbs
discorb-0.19.0 sig/discorb/voice_region.rbs
discorb-0.18.1 sig/discorb/voice_region.rbs
discorb-0.18.0 sig/discorb/voice_region.rbs