4.0-alpha.2
Pre-release🎉 More major work towards IveBot 4.0 \o/
This release is focused towards wiring slash commands support into IveBot. It took a lot of architecturing and decision making (just look at the first and last major change commits), but we got there. The slash command API in IveBot is about as stable as Discord will currently allow it to be :^) apart from that, the dashboard has received a pile of fixes and a bunch of patches have been made which will eventually be backported to 3.2.2. The bot has been updated to Discord API v9, due to the changes, changeserverregion
and listserverregions
have been refactored to changevoiceregion
and listvoiceregions
in addition to a pile of code changes under the hood. All of the game commands have been ported to slash commands (apart from gunfight and trivia), as well as a handful of other commands in utilities. The goal for 4.0 is to get all commands ported.
This release is tested in production to be fairly stable (in my previous release, I stated that the next alpha release would be sure to break some stuff, but I don't believe that holds true anymore given the bug-free state of this release). Naturally, the 3.x branch is currently still ideal if you wish to avoid introducing any bugs.
Major Changes
- Add slash-create, fix dashboard channel menu: 62fa8d4
- Wire initial slash commands support: 0fa2c28
- Add slashOptions to commands, port some commands. Current approach is to have slashGenerator and generator: c65e505
- Add commonGenerators, ephemeral errors. Also, port /serverinfo to slash commands: db8b635
- Slash /help, use Eris v9, disable region commands: 8732bc0
- Use Eris Interactions for parsing slash commands. slash-create is still used to sync slash commands with Discord. Also, port /creationtime to slash commands: 1b4dc01
- Remove slash-create, use Eris to register cmds: f5f58dd
Minor Changes
- Fix bugs, update list/changevoiceregion: c2328e7
- Improve+fix errors, validate interaction options. Improve bubble wrapped error logging. Fix errors by allowing slash commands to assert options is array. Add slash command options validator. Fixes any errors caused by broken Discord validation just in case. Also removes any responsibility of slash generators to need to check. Types can be casted safely in slash generators now. No sub command support yet though: 93645f9
- Register slash commands non-blocking, fix errors: 9208eb6
Patches
- Bump next from 11.0.1 to 11.1.0 in /dashboard: #34
- Fix public roles exploit: 8001ba1
- Fix /ocr on newer Node versions: 4c80771
- Fix 2 internal errors with /calc and /av: 80b48e4
- Fix dashboard and slash /help bugs. Dashboard Save button now works. Dashboard Cancel button now works. Dashboard now shows news channels too: 0a07e10
- Bump next from 11.1.0 to 11.1.1 in /dashboard: #35
- Exclude roles with disableEveryone too: 3381ec4
- Bump ansi-regex from 5.0.0 to 5.0.1 in /dashboard: #36
- Replace deprecated embed property: 5879290