Skip to content

Commit

Permalink
fix: required activities field is not being sent in presence update p…
Browse files Browse the repository at this point in the history
…ayload (#557)
  • Loading branch information
priyanuj-gogoi authored Sep 20, 2023
1 parent 3630696 commit 650ee17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/builders/presence.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PresenceBuilder extends CreateBuilder<PresenceUpdateEvent> {
@override
Map<String, Object?> build() => {
'since': since?.millisecondsSinceEpoch,
if (activities != null) 'activities': activities!.map((e) => e.build()).toList(),
'activities': activities?.map((e) => e.build()).toList(),
'status': status.value,
'afk': isAfk,
};
Expand Down

0 comments on commit 650ee17

Please sign in to comment.