DiscordUserAgent class
Clients using the HTTP API must provide a valid User Agent which specifies information about the client library and version
Constructors
- DiscordUserAgent({required String url, required String versionNumber, String? extra})
-
Creates a new DiscordUserAgent with the given url, versionNumber,
and optional extra information
const
Properties
- extra → String?
-
Extra information you would like to provide
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
A url containing information about your bot
final
- versionNumber → String
-
Your bot's version number
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited