-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interaction.respond() now returns the original interaction response object. Added interaction.defer() to send a deferred acknoledgement (sort of works, clients are a bit wonky right now). Added interaction.followup() to send a followup message. Embeds and allowed mentions can now be sent. Requests are now asyncronous. interaction.member and interaction.user properties are now actual objects instead of just dictionaries. Added interaction.isDirectMessage to check if the slash command is being used in DMs. Exceptions will now be raised when attempting to respond to an interaction more than once, or trying to defer more than once. Added fetching a list of guilds the bot user is in to delete commands that are no longer present in the code (wont work if the application does not have a bot user in any guilds). Removed the options key-word argument from the new slash command decorator (i'll add it back in the next update). Fixed a bug inside slashcommands.run() where all Application Command gateway events would print with the same payload name. Content is now optional for interaction.respond(). Renamed interaction.channel_id and interaction.guild_id to interaction.channelID and interaction.guildID respectively.
- Loading branch information
1 parent
ba6a16a
commit 0e1d0b8
Showing
2 changed files
with
226 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters