Skip to content

Release 1.0.9

Compare
Choose a tag to compare
@eunwoo1104 eunwoo1104 released this 13 Feb 12:34

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.