Constants class

The client constants.

Constructors

Constants()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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

Static Methods

gatewayUri(String gatewayHost, bool useCompression, [Encoding encoding = Encoding.json]) Uri
Returns Uri to gateway

Constants

apiVersion → const int
Version of API
10
baseUri → const String
Base API uri
"/api/v$apiVersion"
cdnHost → const String
Discord CDN host
"discordapp.com"
cdnUrl → const String
Url for cdn host
"https://cdn.${Constants.cdnHost}"
host → const String
Discord API host
"discord.com"
repoUrl → const String
Url to Nyxx repo
"https://github.com/nyxx-discord/nyxx"
version → const String
Version of Nyxx
"5.1.1"