aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ui/view.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/ui/view.py b/discord/ui/view.py
index 55806830..13016a8e 100644
--- a/discord/ui/view.py
+++ b/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.