Skip to content

v0.5.1 Small fixes for calling setState and bots without the `bot` scope

Pre-release
Pre-release
Compare
Choose a tag to compare
@Rodentman87 Rodentman87 released this 25 Apr 02:22
· 30 commits to main since this release
93e2d87

Adds a small fix for calling setState if the latest interaction hasn't been deferred. Previously, this would cause an issue since the update didn't use a normal interaction response update and Discord wouldn't allow the update to occur since there was no initial reply. Now, it will check if the latest interaction has been replied to and use an update response if it hasn't.

⚠️ Note: If you do want to call interaction.deferUpdate(), make sure you await it before calling setState next.

Slashasaurus also no longer pulls the command manager for you dev guild from the cache. This should fix an issue when trying to register guild commands on a bot without the bot scope in guilds.