#Why do i keep getting interaction failed

1 messages · Page 1 of 1 (latest)

crisp perch
#

when I click on "Cancel", it displays the correct embed, but for some reason it visually looks like i pressed a button, when i did not.
I do not receive the event, i think this may just be a discord thing?

#
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;
  }
}
crisp perch
#

bump

small inlet
#

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 )

crisp perch
small inlet
#

yeah go ahead

crisp perch