Skip to content

Commit

Permalink
Merge pull request #274 from nyxx-discord/dev
Browse files Browse the repository at this point in the history
Release 3.1.1
  • Loading branch information
l7ssha authored Dec 29, 2021
2 parents 32b3d2d + d72355b commit 5fbc86e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 3.1.1
__29.12.2021__

- Correctly expose `builder` parameter in `IMember#edit`

## 3.1.0
__28.12.2021__

Expand Down
8 changes: 7 additions & 1 deletion lib/src/core/user/member.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ abstract class IMember implements SnowflakeEntity, Mentionable {

/// Edits members. Allows to move user in voice channel, mute or deaf, change nick, roles.
Future<void> edit(
{String? nick = "", List<SnowflakeEntity>? roles, bool? mute, bool? deaf, Snowflake? channel = const Snowflake.zero(), String? auditReason});
{@Deprecated('Use "builder" parameter') String? nick = "",
@Deprecated('Use "builder" parameter') List<SnowflakeEntity>? roles,
@Deprecated('Use "builder" parameter') bool? mute,
@Deprecated('Use "builder" parameter') bool? deaf,
@Deprecated('Use "builder" parameter') Snowflake? channel = const Snowflake.zero(),
MemberBuilder? builder,
String? auditReason});
}

class Member extends SnowflakeEntity implements IMember {
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.1.0";
static const String version = "3.1.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.1.0
version: 3.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 5fbc86e

Please sign in to comment.