-
-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Implement audit log events #1932
feat: Implement audit log events #1932
Conversation
for more information, see https://pre-commit.ci
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1932 +/- ##
==========================================
- Coverage 33.38% 33.37% -0.02%
==========================================
Files 97 97
Lines 18815 18845 +30
==========================================
+ Hits 6282 6290 +8
- Misses 12533 12555 +22
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
FAQ text should be updated with the correct version number before releasing |
Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com> Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com>
Regarding version numbers, it ultimately depends on the release because |
Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com>
Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com>
Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com>
Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com>
Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com>
Summary
Continuation of #1873, implementing changes as per discord/discord-api-docs#5849:
Intents.bans
is now an alias ofIntents.moderation
on_audit_log_entry
on_raw_audit_log_entry
and its respective payload.Closes #1872.
This PR is functionally complete, however I'm not entirely sure on the raw payload structure; currently the only converted objects are:
guild
, as it'll only fire for cached guildsaction_type
as Enums are easy enough to deal withIs it worth trying to convert anything else? It's kind of odd to work with the original data but both
extra
(options
) andchanges
are fairly cache reliant and can't efficiently be done with the current methods, thoughchanges
could work if you force everything to be anObject
. That being said, it's still a Raw event so working with raw data should be expected.Information
examples, ...).
Checklist
type: ignore
comments were used, a comment is also left explaining why.