Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/pip/mypy-approx-eq-1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum authored Dec 26, 2023
2 parents c0745f4 + 16c696c commit 27091da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion discord/ui/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,12 @@ async def on_timeout(self) -> None:
"""
if self.disable_on_timeout:
self.disable_all_items()
message = self._message or self.parent

if not self._message or self._message.flags.ephemeral:
message = self.parent
else:
message = self.message

if message:
m = await message.edit(view=self)
if m:
Expand Down

0 comments on commit 27091da

Please sign in to comment.