Skip to content

Commit 413d012

Browse files
LuisWollenschneiderLulalaby
authored andcommitted
use custom_id to create timeout task
1 parent 99b08d2 commit 413d012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/ui/modal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _dispatch_timeout(self):
100100
return
101101

102102
self._stopped.set_result(True)
103-
self.loop.create_task(self.on_timeout(), name=f"discord-ui-view-timeout-{self.id}")
103+
self.loop.create_task(self.on_timeout(), name=f"discord-ui-view-timeout-{self.custom_id}")
104104

105105
@property
106106
def title(self) -> str:

0 commit comments

Comments
 (0)