You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I am reading a MessageSelectMenu off of a Message object. After using the .Select() function, how can I "close" my MessageSelectMenu object so that I don't get a timeout error?
var index = messageSelectMenu.options.findIndex(o => o.value === solvedCaptcha.text)
if (index > -1){
//click the component
messageSelectMenu.select(message, [messageSelectMenu.options[index].label])
//HOW TO CLOSE MY MENU SO IT DOESNT TIME OUT
messageSelectMenu.close()
return true
}
else{
For context. I pay for a 2Captcha service to solve captchas. After I get the solved text, I choose the correct option in the MessageSelectMenu. After that, I want to "close" it out, so that I don't get any timeout errors. However, after a certain amount of time (around 5-6 minutes?), a timeout occurs. I don't want to delay the timeout interval, i want to close it out entirely as I don't ever need a reference to the specific MessageSelectMenu again
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I am reading a MessageSelectMenu off of a Message object. After using the .Select() function, how can I "close" my MessageSelectMenu object so that I don't get a timeout error?
For context. I pay for a 2Captcha service to solve captchas. After I get the solved text, I choose the correct option in the MessageSelectMenu. After that, I want to "close" it out, so that I don't get any timeout errors. However, after a certain amount of time (around 5-6 minutes?), a timeout occurs. I don't want to delay the timeout interval, i want to close it out entirely as I don't ever need a reference to the specific MessageSelectMenu again
Beta Was this translation helpful? Give feedback.
All reactions