Skip to content

Commit

Permalink
Merge pull request #239 from nyxx-discord/dev
Browse files Browse the repository at this point in the history
2.1.1 release
  • Loading branch information
l7ssha authored Nov 2, 2021
2 parents 6d29827 + f94b1e4 commit dd11d00
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions nyxx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.1.1
__02.11.2021__

- Fix #236
- Fix #237

## 2.1.0
__22.10.2021__

Expand Down
2 changes: 1 addition & 1 deletion nyxx/lib/src/core/channel/ThreadChannel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ThreadChannel extends MinimalGuildChannel implements TextChannel {
this.archived = meta["archived"] as bool;
this.archiveAt = DateTime.parse(meta["archive_timestamp"] as String);
this.archiveAfter = ThreadArchiveTime._new(meta["auto_archive_duration"] as int);
this.invitable = raw["invitable"] as bool;
this.invitable = raw["invitable"] as bool? ?? false;
}

/// Fetches from API current list of member that has access to that thread
Expand Down
2 changes: 1 addition & 1 deletion nyxx/lib/src/internal/Constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Constants {
static const int apiVersion = 9;

/// Version of Nyxx
static const String version = "2.1.0";
static const String version = "2.1.1";

/// Url to Nyxx repo
static const String repoUrl = "https://github.com/nyxx-discord/nyxx";
Expand Down
2 changes: 1 addition & 1 deletion nyxx/lib/src/utils/builders/GuildBuilder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class ChannelBuilder extends Builder {
if (userLimit != null) "user_limit": userLimit,
if (rateLimitPerUser != null) "rate_limit_per_user": rateLimitPerUser,
if (position != null) "position": position,
if (parentChannel != null) "parent_id": parentChannel!.id,
if (parentChannel != null) "parent_id": parentChannel!.id.toString(),
if (nsfw != null) "nsfw": nsfw,
if (overrides != null) "permission_overwrites" : overrides!.map((e) => e.build()),
if (rtcRegion != "") "rtc_region": rtcRegion,
Expand Down
2 changes: 1 addition & 1 deletion nyxx/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: nyxx
version: 2.1.0
version: 2.1.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 dd11d00

Please sign in to comment.