CdnRequest class

A request to Discord's CDN.

Inheritance

Constructors

CdnRequest(HttpRoute route, {Map<String, String> queryParameters = const {}})
Create a new CdnRequest.

Properties

applyGlobalRateLimit bool
Whether to apply the global rate limit to this request.
finalinherited
auditLogReason String?
The audit log reason for this request.
finalinherited
authenticated bool
Whether to add authentication to this request when sending it.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
The headers for this request.
finalinherited
method String
The method for this request.
finalinherited
queryParameters Map<String, String>
The query parameters for this request.
finalinherited
rateLimitId String
The identifier for the rate limit bucket for this request.
no setterinherited
route HttpRoute
The route for this request.
finalinherited
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
prepare(Nyxx client) BaseRequest
Transform this HttpRequest into a BaseRequest to be sent.
override
toString() String
A string representation of this object.
inherited

Operators

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