Skip to content

Commit

Permalink
use custom_id to create timeout task
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisWollenschneider authored and Lulalaby committed Aug 12, 2022
1 parent 99b08d2 commit 413d012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ui/modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _dispatch_timeout(self):
return

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

@property
def title(self) -> str:
Expand Down

0 comments on commit 413d012

Please sign in to comment.