Browse Source

Fix views not being removed upon timeout

pull/7494/head
Rapptz 3 years ago
parent
commit
c22f058fa0
  1. 4
      discord/ui/view.py

4
discord/ui/view.py

@ -376,6 +376,10 @@ class View:
if self.__stopped.done():
return
if self.__cancel_callback:
self.__cancel_callback(self)
self.__cancel_callback = None
self.__stopped.set_result(True)
asyncio.create_task(self.on_timeout(), name=f'discord-ui-view-timeout-{self.id}')

Loading…
Cancel
Save