MineralClient class
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
-
no setter
- commands → CommandService
-
no setter
- container ↔ Ioc
-
getter/setter pairinherited
- 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< 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