PresenceBuilder class
Allows to build object of user presence used later when setting user presence.
Constructors
- PresenceBuilder()
- Empty constructor to when setting all values manually.
- PresenceBuilder.idle({required DateTime since})
-
Sets client status to idle.
since
indicates how long client is afkingfactory - 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-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- 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 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