Skip to content

Commit e8311f2

Browse files
Revnoplexpre-commit-ci[bot]Dorukyum
authored
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 <[email protected]> Signed-off-by: Revnoplex <[email protected]> * Simplify usercheck disable condition Signed-off-by: Revnoplex <[email protected]> * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: Revnoplex <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dorukyum <[email protected]>
1 parent d7d3afb commit e8311f2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ These changes are available on the `master` branch, but have not yet been releas
3333
documentation. ([#2581](https://github.com/Pycord-Development/pycord/pull/2581))
3434
- Fixed a possible bug where audio would play too fast at the beginning of audio files.
3535
([#2584](https://github.com/Pycord-Development/pycord/pull/2584))
36+
- Fixed paginator not responding when using `Paginator.edit()` with default parameters.
37+
([#2594](https://github.com/Pycord-Development/pycord/pull/2594))
3638
- Fixed the `is_owner()` `user` type hint: `User` -> `User | Member`.
3739
([#2593](https://github.com/Pycord-Development/pycord/pull/2593))
3840
- Fixed `Guild.create_test_entitlement()` and `User.create_test_entitlement()` using the

discord/ext/pages/pagination.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,9 @@ async def edit(
10931093

10941094
self.user = user or self.user
10951095

1096+
if not self.user:
1097+
self.usercheck = False
1098+
10961099
try:
10971100
self.message = await message.edit(
10981101
content=page_content.content,

0 commit comments

Comments
 (0)