IHttpRoute class abstract

Builds routes according to Discord's dynamic bucket rate limiting scheme.

Use builder syntax such as:

var route = HttpRoute()..guilds(id: id)..members()..search();

to keep route definitions brief while reusing route rate limiting definitions. If creating custom routes with add, remember to comply with Discord's rate limiting scheme by toggling the appropriate HttpRouteParam.isMajor.

Implementers

Constructors

IHttpRoute()
Creates a new empty IHttpRoute.
factory

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

active() → void
Adds the active part to this IHttpRoute.
add(HttpRoutePart httpRoutePart) → void
Adds a HttpRoutePart to this IHttpRoute.
applications({String? id}) → void
Adds the applications part to this IHttpRoute.
archived() → void
Adds the archived part to this IHttpRoute.
auditlogs() → void
Adds the audit-logs part to this IHttpRoute.
autoModeration() → void
Adds the auto-moderation part to this IHttpRoute.
bans({String? id}) → void
Adds the bans part to this IHttpRoute.
bot() → void
Adds the bot part to this IHttpRoute.
bulkdelete() → void
Adds the bulk-delete part to this IHttpRoute.
channels({String? id}) → void
Adds the channels part to this IHttpRoute.
crosspost() → void
Adds the crosspost part to this IHttpRoute.
emojis({String? id}) → void
Adds the emojis part to this IHttpRoute.
gateway() → void
Adds the gateway part to this IHttpRoute.
guilds({String? id}) → void
Adds the guilds part to this IHttpRoute.
invites({String? id}) → void
Adds the invites part to this IHttpRoute.
members({String? id}) → void
Adds the members part to this IHttpRoute.
messages({String? id}) → void
Adds the messages part to this IHttpRoute.
nick() → void
Adds the nick part to this IHttpRoute.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
oauth2() → void
Adds the oauth2 part to this IHttpRoute.
permissions({String? id}) → void
Adds the permissions part to this IHttpRoute.
pins({String? id}) → void
Adds the pins part to this IHttpRoute.
preview() → void
Adds the preview part to this IHttpRoute.
private() → void
Adds the private part to this IHttpRoute.
prune() → void
Adds the prune part to this IHttpRoute.
public() → void
Adds the public part to this IHttpRoute.
reactions({String? emoji, String? userId}) → void
Adds the reactions part to this IHttpRoute.
regions() → void
Adds the regions part to this IHttpRoute.
roles({String? id}) → void
Adds the roles part to this IHttpRoute.
rules({String? id}) → void
Adds the rules part to this IHttpRoute.
scheduledEvents({String? id}) → void
Adds the scheduled-events part to this IHttpRoute.
Adds the search part to this IHttpRoute.
stageInstances({String? id}) → void
Adds the stage-instances part to this IHttpRoute.
stickerpacks() → void
Adds the sticker-packs part to this IHttpRoute.
stickers({String? id}) → void
Adds the stickers part to this IHttpRoute.
threadMembers({String? id}) → void
Adds the thread-members part to this IHttpRoute.
threads() → void
Adds the threads part to this IHttpRoute.
toString() String
A string representation of this object.
inherited
typing() → void
Adds the typing part to this IHttpRoute.
users({String? id}) → void
Adds the users part to this IHttpRoute.
webhooks({String? id, String? token}) → void
Adds the webhooks part to this IHttpRoute.
welcomeScreen() → void
Adds the welcome-screen part to this IHttpRoute.

Operators

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