Releases: nyxx-discord/nyxx
0.20.0 - Commands framework rework, full emojis support
This version brings big API changes:
Commands
class divided intoMirrorsCommandFramework
andInstanceCommandFramework
.Command
class has now context instead ofMessage
object in method call.Commands
now can into subcommand viaMirrorsCommandFramework
Commands
can create currying calls.delay()
methods provides ability to wait for another input from user.Emojis
big update - now adding, removing reactions and sending emojis are full supported.- Added big. massive class
UnicodeEmojis
which contains about 1k of unicode emojis ready for you use.
0.19.1 - Fixes, Commands gains aliases
This patch fixes few bugs and updates codebase:
- Fixes bug Hackzzila/nyx#23
- Added few documentation strings
- Added support for aliases for CommandFramework
- Tidy up directory structure, changes in module structure
0.19.0 - Embeds, few internal fixes, Invites
I forgot to create this release, so it's few days late, but whatever 😄
This version includes:
- Support for embeds(both creating and parsing)
- Fixed many internal errors
- Adds features like
bulkRemoveMessages
0.18.1 - Eventhandler deprecation, Introducing streams
This version drastically changes API from 0.18.0
from overriding handler class to simply listeting to streams:
Stream<Message> commandNotFoundEvent;
Stream<Message> forAdminOnlyEvent;
Stream<Message> requiredPermissionEvent;
To make use of streams just listen to it:
var commandsListener = new discord.Commands('~~', bot)
..add(new TestCommand())
..commandNotFoundEvent.listen((m) {
m.channel.sendMessage(content: "Command '${m.content}' not found!");
});
0.18.0- Command event handlers
This version adds few dartdocs documentation and more important - adds command event handlers.
EventHandler is class which contains method to handle errors when dispatching command
abstract class EventHandler {
Future commandNotFound(Message message);
Future forAdminOnly(Message message);
Future requiredPermission(Message message);
}
Override this class and add to CommandFramework instance:
var commandsListener = new discord.Commands('~~', bot)
..add(new TestCommand())
..eventHandler = new CustomEventHandler();
0.17.2 - Docs update
In this version:
ICommand
interface is removed.- Fixed typos in documentation
v0.17.1 - CommandFramework fix
This updates added property in Commands
class. It allows to proccess all bots messages too - be carefull with this - you can create message loop.
With this settings your bot will proccess all messages:
var commandsHandler = new discord.Command('~~', client)
...ignoreBots = false;
v0.17.0 - Big CommandsFramework changes
This version includes:
- Fixed
dispatch
pipe for CommandFramework - Can set bots games
- Fixed Hackzzila/nyx#20
- Added few dartdocs
- Fixed
dartanalyzer
few bugs