Skip to content

Conversation

Helloyunho
Copy link

In button component docs, it says custom_id field is not optional, even though it cannot have that field when the type is link or premium.

I was confused by this and wanted to prevent further confusion

@Helloyunho Helloyunho requested a review from a team as a code owner October 3, 2025 15:49
@Helloyunho Helloyunho requested review from abe-discord and removed request for a team October 3, 2025 15:49
Copy link
Contributor

@thewilloftheshadow thewilloftheshadow left a comment

Choose a reason for hiding this comment

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

Below that table it specifically says:

Non-link and non-premium buttons must have a custom_id, and cannot have a url or a sku_id.
Link buttons must have a url, and cannot have a custom_id
So this does bring it inline with the url and sku_id having the optional identifier

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