MineralClient class Null safety

Inheritance

Constructors

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

Properties

application Application
read-only
commands → CommandService
read-only
container Ioc
read / write, inherited
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<CommandBuilder> commands}) Future<void>
registerGuildCommands({required Guild guild, required List<CommandBuilder> commands, required List<MineralContextMenu> contextMenus}) Future<void>
setActivities(List<ClientActivity> activities) → void
Define activities of this
setAfk(bool afk) → void
Define afk of this
setPresence({ClientActivity? activity, ClientStatus? status, bool? afk}) → void
Defines the presence that this should adopt
setStatus(ClientStatus status) → void
Define status of this
toString() String
A string representation of this object.
inherited

Operators

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