Skip to content

Commit

Permalink
Merge pull request #335 from nyxx-discord/hotfix/edit-member
Browse files Browse the repository at this point in the history
Hotfix: Allow members to be disconnected by IMember.edit()
  • Loading branch information
l7ssha authored Apr 22, 2022
2 parents a28deed + 5d61972 commit 240d34b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 3.4.2
__22.04.2022__

- bug: Fix setting `channel` to `null` in MemberBuilder causing errors

## 3.4.1
__10.04.2022__

Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/builders/member_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class MemberBuilder implements Builder {
if (roles != null) 'roles': roles!.map((e) => e.toString()).toList(),
if (mute != null) 'mute': mute,
if (deaf != null) 'deaf': deaf,
if (channel != Snowflake.zero()) 'channel_id': channel.toString(),
if (channel != Snowflake.zero()) 'channel_id': channel?.toString(),
if (timeoutUntil?.millisecondsSinceEpoch != 0) 'communication_disabled_until': timeoutUntil?.toIso8601String(),
};
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: nyxx
version: 3.4.1
version: 3.4.2
description: A Discord library for Dart. Simple, robust framework for creating discord bots for Dart language.
homepage: https://github.com/nyxx-discord/nyxx
repository: https://github.com/nyxx-discord/nyxx
Expand Down

0 comments on commit 240d34b

Please sign in to comment.