VoiceRegion class
Voice Region structure
https://discord.com/developers/docs/resources/voice#voice-region-object-voice-region-structure
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
- VoiceRegion({required String id, required String name, required bool optimal, required bool deprecated, required bool custom})
-
Constructor
const
-
VoiceRegion.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
- custom → bool
-
whether this is a custom voice region (used for events/etc)
final
- deprecated → bool
-
whether this is a deprecated voice region (avoid switching to these)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
unique ID for the region
final
- name → String
-
name of the region
final
- optimal → bool
-
true for a single server that is closest to the current user's client
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited