Bot releases are hidden (Show)
Version 0.6.0 supports nostrum 0.8.0 and comes with a number of improvements
for working with application commands.
Nosedrum.TextCommand
. Application commands have been moved more into theNosedrum.Command
=> Nosedrum.TextCommand
Nosedrum.Invoker
=> Nosedrum.TextCommand.Invoker
Nosedrum.Invoker.Split
=> Nosedrum.TextCommand.Invoker.Split
Nosedrum.Storage
=> Nosedrum.TextCommand.Storage
Nosedrum.Storage.ETS
=> Nosedrum.TextCommand.Storage.ETS
Nosedrum.Interactor
=> Nosedrum.Storage
{:error, {:not_found, {:by, :id | :name, query, options}}}
. See Nosedrum.Converters
for details.:type
fieldNosedrum.ApplicationCommand
Published by jchristgit over 1 year ago
The library has been updated to work with nostrum 0.7. A
few minor changes have been put in as well. The full changelog can be seen
below.
Nosedrum.Invoker.Split
Nosedrum.ApplicationCommand
Published by jchristgit over 1 year ago
The library has been updated to work with the upcoming nostrum 0.7 release. A
few minor changes have been put in as well. The full changelog can be seen
below.
Nosedrum.Invoker.Split
Nosedrum.ApplicationCommand
Published by jchristgit almost 3 years ago
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.
Nosedrum.ApplicationCommand
behaviour,Nosedrum.Interactor
behaviour & theNosedrum.Interactor.Dispatcher
implementation.Nosedrum.Storage
, then you will need to update it to incorporate thisNosedrum.Storage.ETS
:ets.insert
or Agent.get_and_update
inNosedrum.MessageCache
implementations. If you match on the :ok
valueMessageCache.get
or MessageCache.update
, you will need toNosedrum.MessageCache.recent_in_guild
from nil
to :infinity
.Published by jchristgit almost 4 years ago
nosedrum
version 0.3 comes with support for nested subcommands. This will require a small update to your add_command
invocations to use lists instead of tuples.
Additionally, nosedrum
no longer creates its own error messages, but allows the user to deal with creating them. For an example of how to deal with the errors, see bolt
's MESSAGE_CREATE
handler: https://github.com/jchristgit/bolt/blob/5c19c3d68a419a302a62d4f33b77e5cf87bac659/lib/bolt/consumer/message_create.ex#L14-L22.
Nosedrum.Invoker.Split
for details.@short_version
module attribute.{:error, {:unknown_subcommand, name, :known, known_subcommands}}
from the invoker.{:error, :predicate, predicate_result}
from the invoker.