PresenceBuilder class Null safety

Allows to build object of user presence used later when setting user presence.

Inheritance

Constructors

PresenceBuilder()
Empty constructor to when setting all values manually.
PresenceBuilder.idle({DateTime? since})
Sets client status to idle. since indicates how long client is afking
factory
PresenceBuilder.of({UserStatus? status, ActivityBuilder? activity})
Default builder constructor.
factory

Properties

activity ActivityBuilder?
Type of activity.
read / write
afk bool?
If is afk
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
since DateTime?
WHen activity was started
read / write
status UserStatus?
Status of user.
read / write

Methods

build() RawApiMap
Returns built response for api
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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