-
-
Notifications
You must be signed in to change notification settings - Fork 478
Closed
Description
Summary
When trying to get oldest_first, it returns newest firsts
Reproduction Steps
I am trying to get the oldest_first in the audit logs:
async for entry in guild.audit_logs(limit=None, after=object_id,
oldest_first=True, action=discord.AuditLogAction.member_role_update):
print(f'{entry.created_at}')But it is returning the most recent first ...
2023-12-28 19:49:21.731000+00:00
2023-12-28 19:49:18.526000+00:00
2023-12-28 19:49:14.620000+00:00
2023-12-28 19:49:11.040000+00:00
Minimal Reproducible Code
async for entry in guild.audit_logs(limit=None, after=object_id,
oldest_first=True, action=discord.AuditLogAction.member_role_update):
print(f'{entry.created_at}')Expected Results
2023-12-28 19:49:11.040000+00:00
2023-12-28 19:49:14.620000+00:00
2023-12-28 19:49:18.526000+00:00
2023-12-28 19:49:21.731000+00:00
Actual Results
2023-12-28 19:49:21.731000+00:00
2023-12-28 19:49:18.526000+00:00
2023-12-28 19:49:14.620000+00:00
2023-12-28 19:49:11.040000+00:00
Intents
moderation, members, guilds
System Information
- Python v3.11.1-final
- py-cord-dev v2.5.None-candidate
- py-cord-dev pkg_resources: v2.5.0rc5
- aiohttp v3.8.5
- system info: Windows 10 10.0.22631
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
No response