mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Add View.is_finished() to query listening state
This commit is contained in:
parent
61a189c217
commit
2ed3e049e1
@ -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…
x
Reference in New Issue
Block a user