Skip to content

v0.4.0

Choose a tag to compare

@jchristgit jchristgit released this 27 Nov 12:08
· 149 commits to master since this release
v0.4.0
482932d

nosedrum version 0.4 comes with support for application commands and
first-class command alias support, as well as bringing in some small
quality improvements to the message cache & documentation.

A huge thanks for this release to Ben W. (@Bentheburrito), who wrote the
application command support and implemented alias support into the
traditional command behaviour & our command storage.

Added

  • Application command support, via the Nosedrum.ApplicationCommand behaviour,
    as well as the Nosedrum.Interactor behaviour & the
    Nosedrum.Interactor.Dispatcher implementation.
  • First-class alias support for traditional commands. If you implemented your
    own Nosedrum.Storage, then you will need to update it to incorporate this
    change. See the diff for
    Nosedrum.Storage.ETS

    as an example of nosedrum implemented it.

Changed

  • Cache entire messages in message cache implementations.
  • Return direct values from :ets.insert or Agent.get_and_update in
    Nosedrum.MessageCache implementations. If you match on the :ok value
    returned in MessageCache.get or MessageCache.update, you will need to
    update your code.
  • Change value to signal "return all cached messages" in
    Nosedrum.MessageCache.recent_in_guild from nil to :infinity.