From 8e93da2446772da5947e2da96e84ad887808f657 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Tue, 19 Dec 2023 06:49:18 +0100 Subject: [PATCH 1/2] fix: auditlogs after param for fetch is ignored Signed-off-by: Lala Sabathil --- discord/iterators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 71069137b261fb9815e9dcf6867c3294b800d88b Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Tue, 19 Dec 2023 06:52:10 +0100 Subject: [PATCH 2/2] changelog! Signed-off-by: Lala Sabathil --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) 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