#Why do i keep getting interaction failed
1 messages · Page 1 of 1 (latest)
bool timedOut = false;
while (!timedOut)
{
// display components
var button = Interactivity.WaitForButtonAsync();
switch(button.Result.Id)
{
case UPDATE_MONUNUMENTS:
{
timedOut = await UpdateMonuments(ctx, button, settings)
}
}
}
private async Task<bool> UpdateMonuments(SlashCommandContext ctx, InteractivityResult<ComponentInteractionCreatedEventArgs> button, FortSettings output)
{
await button.Result.Interaction.CreateResponseAsync(DiscordInteractionResponseType.DeferredMessageUpdate);
// ommited for berivity
InteractivityResult<ComponentInteractionCreatedEventArgs> confirmation = await Interactivity.WaitForButtonAsync(areYouSureMessage, ctx.User);
}
if (confirmation.Result.Id == CANCEL)
{
return false;
}
}
bump
are you handling the interaction from the confirmation InteractivityResult?
It looks like that your message update and the outstanding interaction clashing against each other
(@crisp perch )
Mind if i DM you a github link to the whole command?
yeah go ahead
