diff --git a/CHANGELOG.md b/CHANGELOG.md index b5a0edc608..02a2e4ceb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,9 @@ These changes are available on the `master` branch, but have not yet been releas apps. ([#2650](https://github.com/Pycord-Development/pycord/pull/2650)) - Fixed type annotations of cached properties. ([#2635](https://github.com/Pycord-Development/pycord/issues/2635)) +- Fixed an error when responding non-ephemerally with a `Paginator` to an ephemerally + deferred interaction. + ([#2661](https://github.com/Pycord-Development/pycord/pull/2661)) ### Changed diff --git a/discord/ext/pages/pagination.py b/discord/ext/pages/pagination.py index dc99996f2a..5fa297e6ee 100644 --- a/discord/ext/pages/pagination.py +++ b/discord/ext/pages/pagination.py @@ -1202,7 +1202,7 @@ async def respond( ) # convert from WebhookMessage to Message reference to bypass # 15min webhook token timeout (non-ephemeral messages only) - if not ephemeral: + if not ephemeral and not msg.flags.ephemeral: msg = await msg.channel.fetch_message(msg.id) else: msg = await interaction.response.send_message(