8000 fix(component): update field name from 'value' to 'values' in CheckboxGroupComponent by ikafly144 · Pull Request #517 · disgoorg/disgo · GitHub
[go: up one dir, main page]

Skip to content

fix(component): update field name from 'value' to 'values' in CheckboxGroupComponent - #517

Merged
topi314 merged 2 commits into
disgoorg:masterfrom
ikafly144:modal-component-values
Feb 14, 2026
Merged

topi314 merged 2 commits into
disgoorg:masterfrom
ikafly144:modal-component-values

Conversation

@ikafly144
Copy link
Copy Markdown
Contributor

Update the field name in CheckboxGroupComponent to ensure consistency with the expected JSON structure.

Copilot AI review requested due to automatic review settings February 14, 2026 08:08
Copilot AI left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a JSON field naming inconsistency in the CheckboxGroupComponent struct. The field name in the JSON tag is being changed from "value" to "values" to align with Discord's API specification and follow the established codebase convention where multi-value components use the plural form.

Changes:

  • Updated the JSON tag for the Values field in CheckboxGroupComponent from "value" to "values" to match the naming convention used by other multi-value components in the codebase

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread discord/component.go Resolved
@topi314
topi314 merged commit 972eaa4 into disgoorg:master Feb 14, 2026
4 checks passed
@topi314
topi314 commented Feb 14, 2026
Copy link
Copy Markdown
Member

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0