Skip to content

Commit 7bd9235

Browse files
fix: 🐛 fix responding with paginator after deferring interaction ephemerally (#2661)
* 🐛 Fix error when responding with paginator to an ephemeral deferred interaction * 📝 CHANGELOG.md * ✏️ Fix writing --------- Signed-off-by: Dorukyum <[email protected]> Co-authored-by: Dorukyum <[email protected]>
1 parent 3298cd0 commit 7bd9235

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ These changes are available on the `master` branch, but have not yet been releas
6464
apps. ([#2650](https://github.com/Pycord-Development/pycord/pull/2650))
6565
- Fixed type annotations of cached properties.
6666
([#2635](https://github.com/Pycord-Development/pycord/issues/2635))
67+
- Fixed an error when responding non-ephemerally with a `Paginator` to an ephemerally
68+
deferred interaction.
69+
([#2661](https://github.com/Pycord-Development/pycord/pull/2661))
6770

6871
### Changed
6972

discord/ext/pages/pagination.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ async def respond(
12021202
)
12031203
# convert from WebhookMessage to Message reference to bypass
12041204
# 15min webhook token timeout (non-ephemeral messages only)
1205-
if not ephemeral:
1205+
if not ephemeral and not msg.flags.ephemeral:
12061206
msg = await msg.channel.fetch_message(msg.id)
12071207
else:
12081208
msg = await interaction.response.send_message(

0 commit comments

Comments
 (0)