setTimeout with an async function
Hello, I'm currently trying to use a setTimeout function to wait for an interaction from the user, and if it doesn't receive it in time, remove the interactable components from the message.
So, I have something like
This, however, gives me the error that
If I instead do I receive
What can I do to get around this / what have other people done when trying to remove interactions after a certain amount of time?
2 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yeah this was me paraphrasing my function, I actually do this
How am I meant to correctly use it?
Ah yes, thank you!
yeah, I did - typo oops
My error got buried under some debugging so I just typed it out
This worked, thank you so much!