Skip to content

Releases: Kenny2github/discord-ext-slash

0.3.0 Prerelease 3

27 Jan 16:01
Compare
Choose a tag to compare
0.3.0 Prerelease 3 Pre-release
Pre-release

Fixes

  • Forthport changes from 0.2.2
  • More annotations
  • Clean up

0.3.0 Prerelease 2

27 Jan 14:07
Compare
Choose a tag to compare
0.3.0 Prerelease 2 Pre-release
Pre-release

Fixes

  • in_addition is removed, so remove it from the demo
  • slash.__all__ is now defined
  • Support forward reference annotations
  • The message of the ValueError raised when no argument is annotated with Context was written when that was still named SlashContext

0.3.0 Prerelease 1

27 Jan 09:24
Compare
Choose a tag to compare
0.3.0 Prerelease 1 Pre-release
Pre-release

New Stuff

  • @Group.default on top of @Group.slash_cmd() marks a subcommand as the one called when the base group is invoked.

Changes

  • default behavior is fully clarified now, but not currently enabled.
  • This means Option.default is fully removed now.
  • Since calling a base group translates into calling the default subcommand, the Group.coro is now deprived of an original jurisdiction. Final behavior is that all parent coros will be called in order of increasing child levels before the command is invoked.

Fixes:

  • Actual Python annotations for classes, instead of just doc descriptions

0.2.2

27 Jan 15:14
Compare
Choose a tag to compare

Major Fixes

  • Because Group now inherits from Command, and all Groups were being instance-checked as Command first, subcommands ended up never being called... Switched the order.
  • The stock check couldn't accept the self argument, so cog commands all failed.

0.2.1

25 Jan 03:03
Compare
Choose a tag to compare

New Stuff

  • slash.Context subclasses can now be used to annotate the context argument. They will be instantiated with the same signature as the base class.

Changes

0.2.0

18 Jan 12:38
Compare
Choose a tag to compare

New Stuff

  • Base command groups will be able to be invoked directly at some point in the future, so that is supported now
  • This means that the decorated coro is actually the callback
  • Checks have been moved into @Group.check
  • You can specify in_addition=True to call the group callback before a subcommand callback
  • MessageFlags enum marks message flags
  • In particular, MessageFlags.EPHEMERAL can be passed into the new flags argument in Context.respond() to send a message à la Clyde that is private and dismissable

Changes

  • The entire traceback for failed fetches when constructing Contexts is no longer logged, only the fact that the fetch failed.
  • Some objects now have __repr__s or __str__s
  • Group inherits from Command

Fixes

  • Logger name was wrong (correct is discord.ext.slash)
  • allowed_mentions was actually supported by the API this whole time, but my implementation was faulty

0.1.4

14 Jan 17:12
Compare
Choose a tag to compare

Changes

  • The cog_check method of a cog is now supported (though only as an async method)

Fixes

  • SlashBot.debug_guild wasn't being casted to int, and it was being set before calling super()
  • content is now blindly casted to str

0.1.3

07 Jan 16:28
Compare
Choose a tag to compare

Changes

  • Cogs are actually a thing now, more or less. Command.cog, Group.cog, Context.cog have values now.

    This was done because instance methods weren't being called with a self argument
    • Groups copy their cog to their subcommands
  • Context.respond() now takes embed as shorthand for one-item embeds

Fixes

  • Options with names other than the function argument name used to break.
  • Subcommands with no arguments used to not be callable.
  • Critical: Not specifying a guild ID led to failure to register the command
  • Subcommands in cogs were being doubly added as top-level commands
  • If one command is invalid, this doesn't prevent the rest from being registered

0.1.2

06 Jan 15:18
Compare
Choose a tag to compare

A few bugfixes

  • ids were not ints in a lot of places.
  • Processing Context.options did not have error handling.
  • It turns out that Choice.value cannot be int.
  • Changed doc of Command to say "parameters" because check is not an attribute

0.1.1

06 Jan 11:43
Compare
Choose a tag to compare

Fix README and consolidate decorator/add methods.