Skip to content

audit log changes is broken #2881

@JL710

Description

@JL710

Summary

Checking the audit log changes twice causes an error

Reproduction Steps

  1. get a AuditLogEntry object for a timout entry
  2. access the changes property twice

Minimal Reproducible Code

async for audit_log_entry in before.guild.audit_logs(       action=discord.AuditLogAction.member_update, limit=5):
    print(audit_log_entry.changes)
    print(audit_log_entry.changes)

Expected Results

no error

Actual Results

AttributeError: 'AuditLogEntry' object has no attribute '_changes'

Intents

all

System Information

latest cachy os

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

https://discord.com/channels/881207955029110855/1410374129655484517

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions