v0.5.1 Small fixes for calling setState and bots without the `bot` scope
Pre-release
Pre-release
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 callinteraction.deferUpdate()
, make sure you await it before callingsetState
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.