From e8311f2680972fe187feec95854ed1d0d5197118 Mon Sep 17 00:00:00 2001 From: Revnoplex <62947003+Revnoplex@users.noreply.github.com> Date: Sat, 5 Oct 2024 06:46:37 +1000 Subject: [PATCH] fix: don't try to do an interaction_check if there isn't a user available to check (#2594) * fix: don't try to do an interaction_check if there isn't a user available to check * add changelog entry * style(pre-commit): auto fixes from pre-commit.com hooks * Update CHANGELOG.md Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Signed-off-by: Revnoplex <62947003+Revnoplex@users.noreply.github.com> * Simplify usercheck disable condition Signed-off-by: Revnoplex <62947003+Revnoplex@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: Revnoplex <62947003+Revnoplex@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> --- CHANGELOG.md | 2 ++ discord/ext/pages/pagination.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb35d97cce..0df83c03a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,8 @@ These changes are available on the `master` branch, but have not yet been releas documentation. ([#2581](https://github.com/Pycord-Development/pycord/pull/2581)) - Fixed a possible bug where audio would play too fast at the beginning of audio files. ([#2584](https://github.com/Pycord-Development/pycord/pull/2584)) +- Fixed paginator not responding when using `Paginator.edit()` with default parameters. + ([#2594](https://github.com/Pycord-Development/pycord/pull/2594)) - Fixed the `is_owner()` `user` type hint: `User` -> `User | Member`. ([#2593](https://github.com/Pycord-Development/pycord/pull/2593)) - Fixed `Guild.create_test_entitlement()` and `User.create_test_entitlement()` using the diff --git a/discord/ext/pages/pagination.py b/discord/ext/pages/pagination.py index d3f2d32800..884a157a92 100644 --- a/discord/ext/pages/pagination.py +++ b/discord/ext/pages/pagination.py @@ -1093,6 +1093,9 @@ async def edit( self.user = user or self.user + if not self.user: + self.usercheck = False + try: self.message = await message.edit( content=page_content.content,