nyxx

Wrapper around Discord API for Dart

APACHE-2.0 License

Stars
326

Bot releases are hidden (Show)

nyxx - 0.21.2 - Bug fixes

Published by l7ssha over 6 years ago

  • Bug fixes
    • Added overrides
    • Implemented hashCode for Emoji and Snowflake
    • Fixed return type for delay() in Command class
nyxx - 0.21.1 - Bug fixes

Published by l7ssha over 6 years ago

  • Bug fixes
    • Fixed constructors in MessageChannel and TextChannel
nyxx - 0.21.0 - Sending files added!

Published by l7ssha over 6 years ago

  • New features
    • Support for sending files, attaching files in embed
    • Added missing gateway events
    • Replaced String ids with Snowflake type
  • Bug fixes
    • Fixed nulls exceptions
    • More seamless integration with Emojis
nyxx - 0.20.0 - Commands framework rework, full emojis support

Published by l7ssha over 6 years ago

This version brings big API changes:

  • Commands class divided into MirrorsCommandFramework and InstanceCommandFramework.
  • Command class has now context instead of Message object in method call.
  • Commands now can into subcommand via MirrorsCommandFramework
  • 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.
nyxx - 0.19.1 - Fixes, Commands gains aliases

Published by l7ssha over 6 years ago

This patch fixes few bugs and updates codebase:

nyxx - 0.19.0 - Embeds, few internal fixes, Invites

Published by l7ssha over 6 years ago

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
nyxx - 0.18.1 - Eventhandler deprecation, Introducing streams

Published by l7ssha over 6 years ago

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!");
    });
nyxx - 0.18.0- Command event handlers

Published by l7ssha over 6 years ago

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();
nyxx - 0.17.2 - Docs update

Published by l7ssha over 6 years ago

In this version:

  • ICommand interface is removed.
  • Fixed typos in documentation
nyxx - v0.17.1 - CommandFramework fix

Published by l7ssha over 6 years ago

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;
nyxx - v0.17.0 - Big CommandsFramework changes

Published by l7ssha over 6 years ago

This version includes:

  • Fixed dispatch pipe for CommandFramework
  • Can set bots games
  • Fixed Hackzzila/nyx#20
  • Added few dartdocs
  • Fixed dartanalyzer few bugs