Releases: itsMapleLeaf/gatekeeper
Release 0.9.1
Small patch to improve error handling in loadFile
when using ES modules. Before it swallowed the actual error that occurred, showing a generic "cannot use import statement outside a file" error, but now it should show the actual problem that occurred.
Release 0.9.0
- Converted project to use and publish an ES module build. I tested this as well as I could, but please report any issues relating to this that you find.
- Fixed an error when deferring and immediately replying
Release 0.8.0
What's Changed
- Added command aliases by @itsMapleLeaf in #16
- Improved command sync: commands won't be deleted before getting updated
Full Changelog: v0.7.0...v0.8.0
Release 0.7.0
v0.6.1
Fixed a bug where slash commands were being recreated when they shouldn't have.
v0.6.0
- Made logging more configurable. It accepts an array of levels, so if you only want warnings and errors, you can pass
logging: ['warn', 'error']
- Added an
onError
callback to do something when an error happens, like logging your own errors, or sending a report to an error reporting service, etc.
v0.5.0
- BREAKING: New public interface, see the README and guide for new usage. Commands still work the same, though. Same concepts and everything
- Previously, running enough commands would cause a "max listener limit exceeded" warning. The internals received an overhaul that uses a single command listener for interactions, so that warning should no longer show. The library should use less memory as a side-effect.
- Reduced logging
- Added
message
on the interaction context for button and select menu components, to access the message that the component is on - Added
message
toReplyHandle
, to access the message associated with a reply
v0.4.0
Added a new function context.ephemeralDefer()
, when you want to show a loading message just to the user to ran the command.
Also added an extra error check to prevent the whole bot from crashing from certain errors.
v0.3.1
Just a small patch to remove Jest as a hard dependency, oops 🙃
Also removed the lodash dependency, since I was only using two functions from it, easily replaced with helpers ¯\_(ツ)_/¯
Button enhancements
- Added disabled button support, just for completeness' sake, but I'd personally recommend going with a more inclusive UX
- Added support for link buttons in the form of a separate
linkComponent
- Fixed an issue with commands getting registered too often