Skip to content

feat(enums): add new audit log events - #1631

Open
Snipy7374 wants to merge 7 commits into
DisnakeDev:masterfrom
Snipy7374:feat/auditlog_events
Open

Snipy7374 wants to merge 7 commits into
DisnakeDev:masterfrom
Snipy7374:feat/auditlog_events

Conversation

@Snipy7374

Copy link
Copy Markdown
Collaborator

Summary

Checklist

  • If code changes were made, then they have been tested
    • I have updated the documentation to reflect the changes
    • I have formatted the code properly by running uv run nox -s lint
    • I have type-checked the code by running uv run nox -s pyright
  • This PR fixes an issue
  • This PR adds something new (e.g. new method or parameters)
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

@Snipy7374
Snipy7374 requested review from Enegg and shiftinv November 6, 2026 21:16
@Snipy7374 Snipy7374 added t: api support Support of Discord API features s: needs review Issue/PR is awaiting reviews labels Nov 6, 2026
@Snipy7374 Snipy7374 added this to the v2.13 milestone Nov 6, 2026
@read-the-docs-community

read-the-docs-community Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 disnake | 🛠️ Build #35879362 | 📁 Comparing 57511cf against latest (def5844)

  🔍 Preview build  

4 files changed
± genindex.html
± whats_new.html
± api/audit_logs.html
± api/messages.html

@shiftinv

Copy link
Copy Markdown
Member

Those two new actions also come with a count field in the supplementary data, could you add them to this part as well (and update the docs to match)?

elif self.action is enums.AuditLogAction.member_disconnect:
elems = {
"count": int(extra["count"]),
}
self.extra = type("_AuditLogProxy", (), elems)()

Other than that., looks good to me.

@Snipy7374

Copy link
Copy Markdown
Collaborator Author

Those two new actions also come with a count field in the supplementary data, could you add them to this part as well (and update the docs to match)?

elif self.action is enums.AuditLogAction.member_disconnect:
elems = {
"count": int(extra["count"]),
}
self.extra = type("_AuditLogProxy", (), elems)()

Other than that., looks good to me.

Sorry I missed that part in the docs

@shiftinv shiftinv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, turns out I lied, found one more thing c:

Comment thread docs/api/audit_logs.rst Resolved
Comment thread docs/api/audit_logs.rst Resolved
Comment thread disnake/enums.py Resolved
Snipy7374 and others added 2 commits November 13, 2026 22:28
Co-authored-by: vi <8530778+shiftinv@users.noreply.github.com>
Signed-off-by: Snipy7374 <100313469+Snipy7374@users.noreply.github.com>
@Snipy7374
Snipy7374 requested a review from shiftinv November 13, 2026 21:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

s: needs review Issue/PR is awaiting reviews t: api support Support of Discord API features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants