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

Empty string CustomID button returns in interaction error #183

Open
BrammyS opened this issue Oct 5, 2023 · 0 comments
Open

Empty string CustomID button returns in interaction error #183

BrammyS opened this issue Oct 5, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@BrammyS
Copy link
Member

BrammyS commented Oct 5, 2023

Describe the bug
It's possible to add a component button with an empty string for the customId.

To Reproduce
Steps to reproduce the behavior:

        responseBuilder.WithComponent(
            new ActionRowComponentBuilder()
                .WithButton(
                    "Previous",
                    DiscordButtonStyle.Primary,
                    ""
                )
                .Build()
        );

Simply send that response back and youll get the same error.

Expected behavior
it should throw an error explaining that you need a URL or CustomID for a button.

Screenshots

@BrammyS BrammyS added the bug Something isn't working label Oct 5, 2023
@BrammyS BrammyS self-assigned this Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant