From aee3c1b3b729793c56ad70f7a943564082e2dd37 Mon Sep 17 00:00:00 2001 From: Szymon Uglis Date: Mon, 27 Dec 2021 01:33:43 +0100 Subject: [PATCH] Release 3.1.0 (#15) * Add missing CommandOptionTypes (#4) * Update CommandOption.dart * Fix indentation * Merge dev into feat/option-types Co-authored-by: Szymon Uglis * Bump version to 3.1.0 update LICENSE copyright Co-authored-by: Harry Bairstow --- CHANGELOG.md | 5 +++++ LICENSE | 2 +- lib/src/models/command_option.dart | 6 ++++++ pubspec.yaml | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0b1f17..ef25688 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 3.1.0 +__27.12_2021__ + +- Add missing command option types (#4) @HarryET + ## 3.0.0 __19.12.2021__ diff --git a/LICENSE b/LICENSE index 261eeb9..1dfc579 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright 2021 Szymon Uglis, Harry Bairstow and contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/lib/src/models/command_option.dart b/lib/src/models/command_option.dart index 15cb527..34503e7 100644 --- a/lib/src/models/command_option.dart +++ b/lib/src/models/command_option.dart @@ -28,6 +28,12 @@ class CommandOptionType extends IEnum { /// Specify an arg as a role e.g. @RoleName static const role = CommandOptionType(8); + /// Specify an arg as a mentionable user or role + static const mentionable = CommandOptionType(9); + + /// Specify an arg as a double + static const number = CommandOptionType(10); + /// Create new instance of CommandArgType const CommandOptionType(int value) : super(value); } diff --git a/pubspec.yaml b/pubspec.yaml index 47ebcbb..11ae1e6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: nyxx_interactions -version: 3.0.0 +version: 3.1.0 description: Nyxx Interactions Module. 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