Skip to content

Releases: interactions-py/interactions.py

Fix: Release 1.0.9.1

14 Feb 02:23
Compare
Choose a tag to compare

Fixed process_options raises exception if command was called using Android devices.

Release 1.0.9

13 Feb 12:34
Compare
Choose a tag to compare

Before the release note, I'd like to apologize for delaying the update.
Also, this release contains a lot of breaking changes. Make sure to see the docs and update your codes before updating.

Merged Pull Requests
I'd say thank you to all contributors, 1.0.9 won't be this much big without your contributions.

#55 - Command docstring can now be a description of the command.
#57 - Better exception message for .send(), manage_commands.get_all_commands's guild_id param's default is set to None.
#64 - Now automatically generates options using command coroutine's parameters.
#75 - Now get_cog_commands and remove_cog_commands is automatically called, so no more extra lines for cog.
#78 - Some command management methods' HTTP requests can be used via discord.py's http client.
#80 - Now supports PUT request for command syncing.
#81 - Fixed multiple SlashCommand instance can be present.
#86 - Enhanced SlashCommandOptionType.from_type.
#89 - Fixed base commands lookup for the subcommand.

Major Changes
Completely restructured SlashContext, now this will be much similar to discord.py's Context.

  • Added .respond() which will send initial response.
  • .message Attribute is added. This will be present if .respond() was called. (Without eating.)
  • .send() now supports file(s), also now returns sent message object.
  • Now .author, .channel, guild is either discord object or None. IDs can be get using .author_id, .channel_id, guild_id.

Removed auto_register and auto_remove and replaced with sync_commands to prevent API rate limit. Also added sync_on_cog_reload, which will sync commands on cog reload.
Now partly supports discord.py's check function. If there is not working checks, please let me know via GitHub Issues, Discussions, or our Discord Server.
Implemented connector, which will help passing options as kwargs with multi-language option name.

Bug Fixes
Fixed #88 - Subcommands are present in unallowed guild.
Fixed command cannot be triggered via DM.

Fix: Release 1.0.8.1

02 Jan 02:00
Compare
Choose a tag to compare

NOTE: Currently latest version of this extension is 1.0.8.5, not this one. This is because quick fixes are directly uploaded at PyPi. Source of the latest one can be found at hotfix-command-register branch.

Fixed subcommand auto-registering raises exception when base_desc is None.
Changed base_desc, sub_group_desc to base_description, subcommand_group_description. (Previous name is still available as a alias.)
Merged #44.
(#44) Added SlashCommandOptionType enum.

Release 1.0.8

01 Jan 04:16
Compare
Choose a tag to compare

Auto-register now supports subcommands.
Refactored http.py to use discord.py client's http.
Implemented duplicate command name error.
Merged #39 and #41.
(#39) Added unused command remove feature.
(#41) Added all commands remove coro.

Release 1.0.7

25 Dec 05:40
Compare
Choose a tag to compare

Merged #36.
Fixed errors related to guild ID.
Fixed unexpected behaviors related to commands and subcommands.

Release 1.0.6

23 Dec 05:33
Compare
Choose a tag to compare

Merged #33.
Added proper Cog support.
Fixed subcommand can override previously added base command.
Changed slash command to the model.

Release 1.0.5

20 Dec 08:41
Compare
Choose a tag to compare

Merged #22 (event-related) and #28 (README-related).
Added auto-register feature.
Added on_slash_command, on_slash_command_error events.
Added get_all_commands coroutine to utils.manage_commands.
Fixed type 2 and 5 not working at SlashContext.send() coroutine.
Fixed guild_ids and has_subcommands can be falsely overriden.
Changed SlashContext.guild is ID when cannot get guild from cache.
Changed some args of send and edit is keyword-only args.

Fix: Release 1.0.4.1

18 Dec 12:11
Compare
Choose a tag to compare

Fixed subcommand raises KeyError at specific condition.

Release 1.0.4

18 Dec 03:10
Compare
Choose a tag to compare

Fixed #16
Merged #18
Fixed some variables of model.SlashContext is missing when intents are not all enabled.
Added rate limit control.
Added subcommand support.

Release 1.0.3

16 Dec 12:07
Compare
Choose a tag to compare

Added discord.Client support and did some bug fixes.
Supports cog from this version.
At next release, parameter guild_id at slash decorator will be deprecated since it is replaced by guild_ids.