MineralClient class

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
no setter
dmChannels → DmChannelManager
no setter
guilds → GuildManager
no setter
hashCode int
The hash code for this object.
no setterinherited
intents List<Intent>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId String
no setter
uptime DateTime
getter/setter pair
uptimeDuration Duration
Returns the time the MineralClient is online
no setter
user User
no setter
users → UserManager
no setter

Methods

getLatency() int
Sends a ping/pong to the APi websocket of discord and returns the latency
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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