From 3c5bc0e45e45f0d76c024292a1059d46981b30e1 Mon Sep 17 00:00:00 2001 From: Szymon Uglis Date: Sat, 1 Jan 2022 15:52:23 +0100 Subject: [PATCH] Release 3.2.1 --- CHANGELOG.md | 5 +++++ lib/src/core/channel/guild/voice_channel.dart | 6 +++--- lib/src/internal/constants.dart | 2 +- pubspec.yaml | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcb09adb7..9c745c639 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 3.2.1 +__01.01.2022__ + +- Fixup bug with deserialization of new field on voice guild channel introduced in previous release + ## 3.2.0 __31.12.2021__ diff --git a/lib/src/core/channel/guild/voice_channel.dart b/lib/src/core/channel/guild/voice_channel.dart index 01ec0c602..67f458059 100644 --- a/lib/src/core/channel/guild/voice_channel.dart +++ b/lib/src/core/channel/guild/voice_channel.dart @@ -25,7 +25,7 @@ abstract class IVoiceGuildChannel implements IGuildChannel { int? get userLimit; /// Channel voice region id, automatic when set to null - Snowflake? get rtcRegion; + String? get rtcRegion; /// Connects client to channel void connect({bool selfMute = false, bool selfDeafen = false}); @@ -47,13 +47,13 @@ class VoiceGuildChannel extends GuildChannel implements IVoiceGuildChannel { late final int? userLimit; @override - late final Snowflake? rtcRegion; + late final String? rtcRegion; /// Creates an instance of [VoiceGuildChannel] VoiceGuildChannel(INyxx client, RawApiMap raw, [Snowflake? guildId]) : super(client, raw, guildId) { bitrate = raw["bitrate"] as int?; userLimit = raw["user_limit"] as int?; - rtcRegion = raw['rtc_region'] != null ? Snowflake(raw['rtc_region']) : null; + rtcRegion = raw['rtc_region'] as String?; } /// Connects client to channel diff --git a/lib/src/internal/constants.dart b/lib/src/internal/constants.dart index 353a3e4a2..f62d53127 100644 --- a/lib/src/internal/constants.dart +++ b/lib/src/internal/constants.dart @@ -33,7 +33,7 @@ class Constants { static const int apiVersion = 9; /// Version of Nyxx - static const String version = "3.2.0"; + static const String version = "3.2.1"; /// Url to Nyxx repo static const String repoUrl = "https://github.com/nyxx-discord/nyxx"; diff --git a/pubspec.yaml b/pubspec.yaml index a4e20dd54..22455e18f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: nyxx -version: 3.2.0 +version: 3.2.1 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