#Buttons in container

1 messages · Page 1 of 1 (latest)

simple apex
#

Greetings, i've added an actionrow with some buttons to a container and it renders ok, but when i try to get a button click it says the message has no button components:

var separator = new DiscordSeparatorComponent(true, DiscordSeparatorSpacing.Small);
var b1 = new DiscordButtonComponent(DiscordButtonStyle.Success, "button1", "One");
var b2 = new DiscordButtonComponent(DiscordButtonStyle.Danger, "button2", "Two");
var buttons = new DiscordActionRowComponent(new List<DiscordComponent> { b1, b2 });

var components = new List<DiscordComponent>();
components.Add(text);
components.Add(separator);
components.Add(buttons);

var container = new DiscordContainerComponent(components.AsReadOnly(), false, DiscordColor.White);

var builder = new DiscordMessageBuilder();
builder.EnableV2Components();
builder.AddContainerComponent(container);

await ctx.RespondAsync(builder);
var message = await ctx.GetResponseAsync();
var result = await message.WaitForButtonAsync(); //ERROR here
copper apex
#

Oh that seems like an library bug, will look into this later

copper apex
simple apex
simple apex
simple apex
copper apex
#

I will take a look at it when I'm at home this evening

#

s!remind 8h this

icy nimbusBOT
#

I'll remind you <t:1750788675:R>!

icy nimbusBOT
simple apex
copper apex
#

i think so

#

maybe not?

#

i have in mind fixing it but i dont see the commit

#

02526