[Python] Discord.py view doesn't call "on_timeout()" method

Discussão em 'Python' iniciado por Stack, Março 22, 2025.

  1. Stack

    Stack Membro Participativo

    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.

    Continue reading...

Compartilhe esta Página