Persistent views break after a disconnect #7437
Unanswered
hypergonial
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Seems like it's because discord.py clears all states when it receives READY, which also clears stored views. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I've been trying to figure out the cause of this, but it seems that after a longer disconnect from Discord (internet outage) persistent views will simply not work, and require the bot to be restarted. Would it be a good idea to put the view re-adding in
on_ready
instead of a function that only gets called once when the bot is started? I'm not sure on that one.Thanks!
Edit: I can't mark the answer, seems to be a Github issue, if someone else can, it would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions