Skip to content

Releases: Astrea-Stellarium-Labs/tansy

v0.9.2

04 Aug 01:49
67edfe8
Compare
Choose a tag to compare

Changes

  • FEAT: use a better error message for invalid parameters.
  • FIX: Parse ConsumeRest parameters correctly.

Full Changelog: v0.9.1...v0.9.2

v0.9.1

02 Mar 22:10
45f7ced
Compare
Choose a tag to compare

Changes

  • FIX: Properly set channel_types when GuildText is present.
  • FIX: Fix a couple of typehints.
  • FIX: Fix URL for PyPI.

Full Changelog: v0.9.0...v0.9.1

v0.9.0

01 Dec 22:51
Compare
Choose a tag to compare

Changes

  • REFACTOR💥: Replace TansySlashCommandParameter with just SlashCommandParameter from interactions.py. This removes a lot of overhead that no longer needs to exist.
    • Because of this, interactions.py 5.9.0 or greater is required.
  • FEAT: Add class hybrid slash commands.
  • CHORE: Minor updates to LICENSE and setup.py.

Full Changelog: v0.8.0...v0.9.0

v0.8.0

14 Jul 04:20
Compare
Choose a tag to compare

Hybrid command support, woo!

Changes

  • FEAT💥: Add in tansy hybrid commands, which (when used alongside the built-in hybrid extension) allow you to use the Tansy format for hybrid slash commands.
    • This bumps the minimum version of interactions.py to 5.8.0.
    • Class slash commands do not have a hybrid variant yet.
  • FIX: Add __version__ to __all__, oops.

Full Changelog: v0.7.0...v0.8.0

v0.7.0

12 Apr 16:42
Compare
Choose a tag to compare

A very important bug fix, and one feature from v5 that I forgot about.

Changes

  • FIX: Copy checks when inheriting. This prevents unexpected behavior related to checks.
  • FEAT: If no name is given, assume the name based off the function.

Full Changelog: v0.6.1...v0.7.0

v0.6.1

10 Apr 19:58
Compare
Choose a tag to compare

Important bug fix for extension users.

Changes

  • FIX: Properly parse extension functions and don't error out.

Full Changelog: v0.6.0...v0.6.1

v0.6.0

10 Apr 18:47
Compare
Choose a tag to compare

The big NAFF to interactions.py update, alongside some goodies.

Changes

  • CHORE💥: Upgrade to interactions.py v5, the successor of NAFF.
  • FEAT: Add in class-based slash commands! See an example of them in the README.
  • FEAT: Add in @describe, a la discord.py.

Full Changelog: v0.5.2...v0.6.0

v0.5.2

03 Jan 04:58
Compare
Choose a tag to compare

Bug fixes are fun.

Updates

  • FIX: Allow functions with *args, **kwargs to work fine for the patched interaction commands.

Full Changelog: v0.5.1...v0.5.2

v0.5.1

02 Jan 23:52
Compare
Choose a tag to compare

...in my defense, it worked in editable mode.

Changes

  • FIX: Properly import tansy.install_naff_speedups().

Full Changelog: v0.5.0...v0.5.1

v0.5.0

02 Jan 20:01
Compare
Choose a tag to compare

Time to show why tansy was never marketed as just a better way of making slash commands.

Updates

  • FEAT: Added speedups for NAFF itself. They can be installed/patched in via tansy.install_naff_speedups() - take a look at that function's docstring for more information. Currently, the speedups include speedups to embeds, interaction commands, and HTTP serialization.
  • FEAT: Tansy slash commands now allow passing in custom inspect.Signatures if you want to.
  • FIX: Pass kwargs into no parameter callbacks, basically allowing fields like **kwargs to be properly processed.
  • REFACTOR: Tansy slash's post inits have been split into multiple parts to clean out the code.

Full Changelog: v0.4.0...v0.5.0