From 9de636ecd9b522562efe4b5ca633b441e095aa1c Mon Sep 17 00:00:00 2001 From: Abitofevrything Date: Fri, 22 Apr 2022 23:35:30 +0200 Subject: [PATCH 1/2] Fix disconnecting a member from voice --- lib/src/utils/builders/member_builder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/utils/builders/member_builder.dart b/lib/src/utils/builders/member_builder.dart index d89e0ea65..2fae54b2b 100644 --- a/lib/src/utils/builders/member_builder.dart +++ b/lib/src/utils/builders/member_builder.dart @@ -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(), }; } From 5d61972b0cdcc30a893610814e3a685d9dbe0160 Mon Sep 17 00:00:00 2001 From: Abitofevrything Date: Fri, 22 Apr 2022 23:36:25 +0200 Subject: [PATCH 2/2] Release 3.4.2 --- CHANGELOG.md | 5 +++++ pubspec.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f45c9a64b..f4f47c94a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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__ diff --git a/pubspec.yaml b/pubspec.yaml index f59a68800..5872a074c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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