NyxxRest class Null safety

Lightweight client which do not start ws connections.

Inheritance
Implementers

Constructors

NyxxRest(String _token, int intents, {ClientOptions? options, CacheOptions? cacheOptions, bool ignoreExceptions = true, bool useDefaultLogger = true})
Creates and logs in a new client. If ignoreExceptions is true (by default is) isolate will ignore all exceptions and continue to work.

Properties

app ClientOAuth2Application
The bot"s OAuth2 app.
read / write
channels ChannelCache
All of the channels the bot can see.
late, final, override-getter
guilds Cache<Snowflake, Guild>
All of the guilds the bot is in. Can be empty or can miss guilds on (READY_EVENT).
late, final, override-getter
hashCode int
The hash code for this object. [...]
read-only, inherited
httpEndpoints IHttpEndpoints
Returns handler for all available REST API action.
read-only, inherited
intents int
When identifying to the gateway, you have to specify an intents parameter which allows you to conditionally subscribe to pre-defined "intents", groups of events defined by Discord. If you do not specify a certain intent, you will not receive any of the gateway events that are batched into that group. Since api v8 its required upon connecting to gateway.
final
Gets an bot invite link with zero permissions
read-only
onHttpError Stream<HttpErrorEvent>
Emitted when a HTTP request failed.
read / write, inherited
onHttpResponse Stream<HttpResponseEvent>
Emitted when a successful HTTP response is received.
read / write, inherited
onRateLimited Stream<RatelimitEvent>
Sent when the client is rate limited, either by the rate limit handler itself, or when a 429 is received.
read / write, inherited
options ClientOptions
Can be used to edit options after client initialised. Used by Nyxx.interactions to enable raw events
read-only
ready bool
True if client is ready.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
self ClientUser
The current bot user.
read / write
users Cache<Snowflake, User>
All of the users the bot can see. Does not have offline users without forceFetchUsers enabled.
late, final, override-getter
version String
The current version of nyxx
final

Methods

dispose() Future<void>
Perform cleanup
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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