Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Match subcommand (group) name casing with Discord's #6204

Merged
merged 4 commits into from
Jul 29, 2021
Merged

refactor: Match subcommand (group) name casing with Discord's #6204

merged 4 commits into from
Jul 29, 2021

Conversation

Jiralite
Copy link
Member

@Jiralite Jiralite commented Jul 28, 2021

Please describe the changes this PR makes and why it should be merged:
discord.js uses "subcommand" and "sub-command" in several places in the codebase (including the documentation). This pull request will change all instances of "sub-command" to "subcommand". The reason why "subcommand" has been chosen to be preferred was because Discord documents it as "subcommand" and not "sub-command".

With this renaming and consistency with Discord comes a breaking change. The CommandInteractionOptionResolver documents the following:

  • .getSubCommand()
  • .getSubCommandGroup()

These will be renamed accordingly to:

  • .getSubcommand()
  • .getSubcommandGroup()

The private ones will also be updated.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

Copy link
Member

@SpaceEEC SpaceEEC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

typings/index.d.ts Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants