PresenceUpdateEvent class
Presence Update Event fields
If you are using Gateway Intents, you must specify the GUILD_PRESENCES intent in order to receive Presence Update events
The user object within this event can be partial, the only field which must be sent is the id field, everything else is optional. Along with this limitation, no fields are required, and the types of the fields are not validated. Your client should expect any combination of fields and types within this event.
https://discord.com/developers/docs/topics/gateway#presence-update-presence-update-event-fields
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
-
PresenceUpdateEvent({User? user, String? guildId, PresenceStatus? status, List<
Activity> ? activities, ClientStatus? clientStatus}) - Constructor
-
PresenceUpdateEvent.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
-
activities
→ List<
Activity> ? -
user's current activities
final
- clientStatus → ClientStatus?
-
user's platform-dependent status
final
- guildId → String?
-
id of the guild
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → PresenceStatus?
-
either "idle", "dnd", "online", or "offline"
final
- user → User?
-
the user presence is being updated for
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited