discordjs / builders

A collection of builders that you can use when creating your bot.
Apache License 2.0
97 stars 37 forks source link

fix(SlashCommandBuilder): allow subcommands and groups to coexist at the root level #26

Closed Khasms closed 3 years ago

Khasms commented 3 years ago

Please describe the changes this PR makes and why it should be merged: As shown in #25 and as confirmed to me in DAPI, the root level of slash commands supports having both subcommands and subcommand groups, but builders does not. This PR removes the checks that prevented this and updates the relevant types. Also, the new return type name is quite lengthy so I'm open to suggestions on a more concise name.

fix #25

Status and versioning classification: