diff --git a/CHANGELOG.md b/CHANGELOG.md index aecf0b2cb..9f0d70d15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 3.1.1 +__29.12.2021__ + +- Correctly expose `builder` parameter in `IMember#edit` + ## 3.1.0 __28.12.2021__ diff --git a/lib/src/core/user/member.dart b/lib/src/core/user/member.dart index 308d004b6..e3c217d80 100644 --- a/lib/src/core/user/member.dart +++ b/lib/src/core/user/member.dart @@ -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 edit( - {String? nick = "", List? roles, bool? mute, bool? deaf, Snowflake? channel = const Snowflake.zero(), String? auditReason}); + {@Deprecated('Use "builder" parameter') String? nick = "", + @Deprecated('Use "builder" parameter') List? 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 { diff --git a/lib/src/internal/constants.dart b/lib/src/internal/constants.dart index 471c81a6d..29d82f1c1 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.1.0"; + static const String version = "3.1.1"; /// Url to Nyxx repo static const String repoUrl = "https://github.com/nyxx-discord/nyxx"; diff --git a/pubspec.yaml b/pubspec.yaml index 01e2810a5..3c1474015 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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