Skip to content

Commit

Permalink
Release 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Jan 1, 2022
1 parent 48082f4 commit 3c5bc0e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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__

Expand Down
6 changes: 3 additions & 3 deletions lib/src/core/channel/guild/voice_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/src/internal/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
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.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
Expand Down

0 comments on commit 3c5bc0e

Please sign in to comment.