MineralClient class Null safety

Constructors

MineralClient(User _user, GuildManager _guilds, DmChannelManager _dmChannels, UserManager _users, String _sessionId, Application _application, List<Intent> _intents)
MineralClient.from({required dynamic payload})
factory

Properties

application Application
read-only
dmChannels → DmChannelManager
read-only
guilds → GuildManager
read-only
hashCode int
The hash code for this object.
read-only, inherited
intents List<Intent>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sessionId String
read-only
uptime DateTime
read / write
uptimeDuration Duration
Returns the time the MineralClient is online
read-only
user User
read-only
users → UserManager
read-only

Methods

getLatency() int
Sends a ping/pong to the APi websocket of discord and returns the latency
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
registerGlobalCommands({required List<SlashCommand> commands}) Future<void>
registerGuildCommands({required Guild guild, required List<SlashCommand> commands, required List<MineralContextMenu> contextMenus}) Future<void>
setPresence({ClientActivity? activity, ClientStatus? status, bool? afk}) → void
Defines the presence that this should adopt
toString() String
A string representation of this object.
inherited

Operators

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