awaitMessageComponent 'Interaction has already been acknowledged' Error

I have the following piece of code alongside multiple buttons. The idea is that you can
  • manipulate the embed with various buttons
  • ... until you either confirm the selection or reject it.
  • You should be able to press any button as many times as you want, up until you confirm or reject.
If there's a different approach overall, I'd simply like the timer to reset everytime a button is pressed, acting more like an inactivity check.

I am hesitant to use a while loop, since this seems like an obvious infinite loop. A recursive function could cause some memory issues. What is a sensible approach to this task?

Is there a way to "await" a messageComponentCollector's response (either from "collect" or "end")?
unknown.png
Was this page helpful?