INode class Null safety




hashCode int
The hash code for this object. [...]
read-only, inherited
options NodeOptions
Node options, such as host, port, etc..
players UnmodifiableMapView<Snowflake, IGuildPlayer>
Returns a map with all the players the node currently has
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stats IStatsEvent?
Returns the last stats received by this node


autoSearch(String query, {SearchPlatform platform =}) Future<ITracks>
Searches a provided query on selected platform (YouTube by default), if the query is a link it's searched directly by the link
clearPlayers() → void
Clears all the players this node handles
createPlayer(Snowflake guildId) IGuildPlayer
Create a new player for a specific guild
destroy(Snowflake guildId) → void
Destroys a player
disconnect() → void
Tells the node to disconnect from lavalink server
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
pause(Snowflake guildId) → void
Pauses a guild player
play(Snowflake guildId, ITrack track, {bool replace = false, Duration startTime = const Duration(), Duration? endTime, Snowflake? requester, Snowflake? channelId}) IPlayParameters
Get the PlayParameters object for a specific track
reconnect() → void
Tells the node to reconnect to lavalink server
resume(Snowflake guildId) → void
Resumes the track playback of a guild player
searchTracks(String query) Future<ITracks>
Searches a given query over the lavalink api and returns the results
seek(Snowflake guildId, Duration time) → void
Seeks for a given time at the currently playing track
setPause(Snowflake guildId, bool pauseState) → void
Set the pause state of a player [...]
shutdown() → void
Shuts down the node
skip(Snowflake guildId) → void
Skips a track, starting the next one if available or stopping the player if not
stop(Snowflake guildId) → void
Stops a player
toString() String
A string representation of this object. [...]
updateOptions(NodeOptions newOptions) → void
Updates the NodeOptions property of the node, also reconnects the websocket to the new options
volume(Snowflake guildId, int volume) → void
Sets the volume for a guild player, volume should be a number between 1 to 1000


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