From 40d2b00b0289e8d55f98ec1c5c6ee95a3669205d Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Tue, 19 Dec 2023 06:57:15 +0100 Subject: [PATCH] fix: auditlogs after param for fetch is ignored (#2295) --- CHANGELOG.md | 2 ++ discord/iterators.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6928a6bac4..6ece1cf3d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -201,6 +201,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2243](https://github.com/Pycord-Development/pycord/pull/2243)) - Fixed `Intents.all()` returning the wrong value. ([#2257](https://github.com/Pycord-Development/pycord/issues/2257)) +- Fixed `AuditLogIterator` not respecting the `after` parameter. + ([#2295](https://github.com/Pycord-Development/pycord/issues/2295)) ## [2.4.1] - 2023-03-20 diff --git a/discord/iterators.py b/discord/iterators.py index b171d70ed6..7507cfd5d8 100644 --- a/discord/iterators.py +++ b/discord/iterators.py @@ -430,7 +430,7 @@ def __init__( self.before = before self.user_id = user_id self.action_type = action_type - self.after = OLDEST_OBJECT + self.after = after or OLDEST_OBJECT self._users = {} self._state = guild._state