Skip to content

Commit

Permalink
Merge pull request #329 from nyxx-discord/dev
Browse files Browse the repository at this point in the history
Release 3.4.1
  • Loading branch information
l7ssha authored Apr 10, 2022
2 parents c4884ca + 82ea4a5 commit a28deed
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches-ignore:
- main
pull_request:

jobs:
analyze:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 3.4.1
__10.04.2022__

- bug: bugfix: failed to edit guild members (#328)

## 3.4.0
__09.04.2022__

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.4.0";
static const String version = "3.4.1";

/// Url to Nyxx repo
static const String repoUrl = "https://github.com/nyxx-discord/nyxx";
Expand Down
13 changes: 7 additions & 6 deletions lib/src/internal/http_endpoints.dart
Original file line number Diff line number Diff line change
Expand Up @@ -884,12 +884,13 @@ class HttpEndpoints implements IHttpEndpoints {
Snowflake? channel = const Snowflake.zero(),
MemberBuilder? builder,
String? auditReason}) {
final finalBuilder = builder ?? MemberBuilder()
..nick = nick
..roles = roles?.map((e) => e.id).toList()
..mute = mute
..deaf = deaf
..channel = channel;
final finalBuilder = builder ??
(MemberBuilder()
..nick = nick
..roles = roles?.map((e) => e.id).toList()
..mute = mute
..deaf = deaf
..channel = channel);

return executeSafe(BasicRequest("/guilds/$guildId/members/$memberId", method: "PATCH", auditLog: auditReason, body: finalBuilder.build()));
}
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.4.0
version: 3.4.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 a28deed

Please sign in to comment.