PresenceBuilder class

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

Implemented types

Constructors

PresenceBuilder()
Empty constructor to when setting all values manually.
PresenceBuilder.of({UserStatus status, bool afk, Activity game, DateTime since})
Default builder constructor.

Properties

afk bool
If is afk
read / write
game Activity
Type of activity.
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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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