class MyView(discord.ui.View):
async def on_timeout(self):
print('TIMEOUT')
...
If I set the timeout time to 15 minutes, it works, but if I set it to 24 hours, it doesn't work.
discord.errors.ConnectionClosed: Shard ID None WebSocket closed with 1000
When I see this, it seems like the call isn't being made. Is this the problem?
I'm running my bot on AWS free server.
class MyView(discord.ui.View):
async def on_timeout(self):
print('TIMEOUT')
...
If I set the timeout time to 15 minutes, it works, but if I set it to 24 hours, it doesn't work.
discord.errors.ConnectionClosed: Shard ID None WebSocket closed with 1000
When I see this, it seems like the call isn't being made. Is this the problem?
I'm running my bot on AWS free server.
Share Improve this question asked Mar 22 at 4:37 cmaxyscmaxys 11 Answer
Reset to default 0Your bot is probably being restarted in this 24-hour period. When the bot is restarted, all running views are lost.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744324965a4568602.html
评论列表(0条)