Color-Chan / Color-Chan.Discord

A .NET Discord library made for interactions using webhooks.
https://discord-library.colorchan.com/
MIT License
42 stars 8 forks source link

Empty string CustomID button returns in interaction error #183

Open BrammyS opened 9 months ago

BrammyS commented 9 months ago

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