dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
680 stars 161 forks source link

Button clicking doesn't work sometimes #382

Closed theAbdoSabbagh closed 1 year ago

theAbdoSabbagh commented 1 year ago

Summary

When trying to click a button, it sometimes doesn't click

Reproduction Steps

It happens way too randomly, but the way it happens with me is when I try to click a button, it doesnt click, and then returns an error like asyncio timeout error. And no it's not an index error

Code

# both vars are int, defined, and are within the correct index of the message
await response.components[components_num].children[children_num].click()

Expected Results

I guess the buttons should always click

Actual Results

Sometimes it doesn't click, sometimes it does. but most of the time it doesnt

System Information

Checklist

Additional Information

No response

ThePrivatePanda commented 1 year ago

It always works when running a "small" number of instances/accounts and/or executing lesser button clicks. This usually occurs (for me) only when I run too many accounts through the lib, clicking too many buttons at the same time.

dolfies commented 1 year ago

Duplicate of #380

ThePrivatePanda commented 1 year ago

Pretty sure this is not a duplicate and still remains a bug. Your explanation stated in #380

gateway closing at an inopportune time does not explain the REPEATED behaviour- I get it if it errors once in a thousand times, but it errors almost once in every 10 times @Sxvxgee can confirm as we have tested this alot and everything produces the same result