diff --git a/discord/ui/view.py b/discord/ui/view.py index 5bf96f2612..322371d080 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -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: