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

Change choice name length check to 100 instead of 32 #1801

Merged
merged 4 commits into from
Sep 2, 2021

Conversation

hexillium1
Copy link
Contributor

@hexillium1 hexillium1 commented Sep 2, 2021

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: NaN

Description

A commit that moved many constants to the MAX_NAME_LENGTH mistakenly also moved a few values that were 100 into a constant with value 32.

This commit will add a new constant, MAX_NAME_OPTION_LENGTH, to fix those values back to their intended values of 100.

The commit title is meant to say Option Choice, not OptionData.

@hexillium1 hexillium1 changed the title Fixes regression of OptionData name limit from 100 -> 25 Fixes regression of Command Option Choice name limit from 100 -> 25 Sep 2, 2021
A commit that moved many constants to the MAX_NAME_LENGTH mistakenly also moved a few values that were 100 into a constant with value 25.

This commit will add a new constant, MAX_NAME_OPTION_LENGTH, to fix those values back to their intended values of 100.
@MinnDevelopment MinnDevelopment changed the title Fixes regression of Command Option Choice name limit from 100 -> 25 Change choice name length check to 100 instead of 32 Sep 2, 2021
@MinnDevelopment MinnDevelopment merged commit 09a06ab into discord-jda:development Sep 2, 2021
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.

2 participants