DiscordVoiceRegion class

Constructors

DiscordVoiceRegion({required String id, required String name, required bool optimal, required bool deprecated, required bool custom})
DiscordVoiceRegion.fromJson(Map<String, dynamic> 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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

customEntry → const String
deprecatedEntry → const String
idEntry → const String
nameEntry → const String
optimalEntry → const String