Color-Chan.Discord icon indicating copy to clipboard operation
Color-Chan.Discord copied to clipboard

Empty string CustomID button returns in interaction error

Open BrammyS opened this issue 2 years ago • 0 comments

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 avatar Oct 05 '23 20:10 BrammyS