Skip to content

Commit

Permalink
fix: don't try to do an interaction_check if there isn't a user avail…
Browse files Browse the repository at this point in the history
…able 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]>
  • Loading branch information
3 people authored Oct 4, 2024
1 parent d7d3afb commit e8311f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions discord/ext/pages/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e8311f2

Please sign in to comment.