v0.10.0 Perms v2 and other breaking changes
Pre-releaseWarning
This version does contain multiple breaking changes
With this release, command registration has moved to using @discordjs/builders and @discordjs/rest. This means that there has been some changes, the first of which is that you can now set defaultMemberPermissions and dmPermissions on commands. Another change is that there was a slight change in which enum type you should use for restricting channel types on an option. (Use the one from discord-api-types
if you're a TS user (either one will technically work, but if you use the from from discord-api-types then TS will stop complaining)) The last of the breaking changes is that with this new system you now need to pass your token to the command registration function.
With this release there's also now guild commands! This is a basic version that lets you register a second folder of commands just for a specific guild, this can be useful for something like developer only commands that you may want to only register in your dev server. This does currently come with a small restriction though, guild commands cannot share a name with any global commands. This restriction will be removed once this upstream issue is resolved so that slashasaurus can tell when something is a guild command.