NyxxRest class
A client that can make requests to the HTTP API and is authenticated with a bot token.
- Implemented types
- Implementers
Properties
- apiOptions → RestApiOptions
-
The options this client will use when connecting to the API.
final
- application → PartialApplication
-
The application associated with this client.
no setter
- applications → ApplicationManager
-
An ApplicationManager that manages applications for this client.
no setterinherited
- channels → ChannelManager
-
A ChannelManager that manages channels for this client.
no setterinherited
- commands → GlobalApplicationCommandManager
-
A GlobalApplicationCommandManager that manages global application commands.
no setterinherited
- gateway → GatewayManager
-
A GatewayManager that manages gateway metadata for this client.
no setterinherited
- guilds → GuildManager
-
A GuildManager that manages guilds for this client.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpHandler → HttpHandler
-
The HttpHandler used by this client to make requests.
latefinal
- interactions → InteractionManager
-
no setterinherited
- invites → InviteManager
-
An InviteManager that manages invites for this client.
no setterinherited
- logger → Logger
-
The logger for this client.
no setteroverride
- options → RestClientOptions
-
The options controlling the behavior of this client.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stickers → GlobalStickerManager
-
A GlobalStickerManager that manages global stickers.
no setterinherited
- user → PartialUser
-
The user associated with this client.
no setter
- users → UserManager
-
A UserManager that manages users for this client.
no setterinherited
- voice → VoiceManager
-
A VoiceManager that manages voice states for this client.
no setterinherited
- webhooks → WebhookManager
-
A WebhookManager that manages webhooks for this client.
no setterinherited
Methods
-
close(
) → Future< void> -
Close this client and any underlying resources.
override
-
joinThread(
Snowflake id) → Future< void> -
Add the current user to the thread with the ID
id
. -
leaveThread(
Snowflake id) → Future< void> -
Remove the current user from the thread with the ID
id
. -
listGuilds(
{Snowflake? before, Snowflake? after, int? limit}) → Future< List< UserGuild> > - List the guilds the current user is a member of.
-
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