await arg.DeferLoadingAsync(ephemeral: true);
ModalBuilder mB = new ModalBuilder();
mB.Title = arg.Message.Id.ToString();
mB.WithCustomId("modify-options-values");
arg.FollowupAsync($"Building the form up... {loading}")
string val = "";
bool first = true;
foreach (int option_valuein avaliable_options_extracted)
{
if (first)
{
val += size;
first = false;
}
else
{
val += $"|{option_value}";
}
}
mB.AddTextInput("Your options values", "options_values", value: val);
await arg.ModifyOriginalResponseAsync(m => m.Content = $"I'm sending you the form... {loading}");
await arg.RespondWithModalAsync(mB.Build()); // <--- DEBUG STOPS HERE WITHOUT ANY REASON GIVEN
return;
Hi, the problem is that nothing pops up, i tried to see with a breakpoint and doing in the Debug mode, but it just stops without giving any error at the line await arg.RespondWithModalAsync(mB.Build());
Thanks a lot for the help 👍🏻 😺
PS> I've tried putting await arg.DeleteOriginalResponseAsync(); right before the RespondWithModalasync(), it doesn't seem to be a conflict between the text response and the modal response.