PresenceBuilder class

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.
getter/setter pair
afk bool?
If is afk
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
since DateTime?
WHen activity was started
getter/setter pair
status UserStatus?
Status of user.
getter/setter pair

Methods

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

Operators

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