Browse Source

Add View.is_finished() to query listening state

pull/7005/head
Rapptz 4 years ago
parent
commit
2ed3e049e1
  1. 4
      discord/ui/view.py

4
discord/ui/view.py

@ -335,6 +335,10 @@ class View:
if self._cancel_callback:
self._cancel_callback(self)
def is_finished(self) -> bool:
""":class:`bool`: Whether the view has finished interacting."""
return self._stopped.done()
async def wait(self) -> bool:
"""Waits until the view has finished interacting.

Loading…
Cancel
Save