0
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.

1 Answer 1

0

Your bot is probably being restarted in this 24-hour period. When the bot is restarted, all running views are lost.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.