feat: add on_audit_log_entry event#1873
feat: add on_audit_log_entry event#1873EmmmaTech wants to merge 7 commits intoPycord-Development:masterfrom
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1873 +/- ##
==========================================
- Coverage 33.38% 33.27% -0.12%
==========================================
Files 97 96 -1
Lines 18815 18706 -109
==========================================
- Hits 6282 6225 -57
+ Misses 12533 12481 -52
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
| def bans(self): | ||
| """:class:`bool`: Alias of :attr:`.moderation`. | ||
|
|
||
| .. versionchanged:: fill in |
There was a problem hiding this comment.
I thought I replaced that placeholder with 2.4...
| @flag_value | ||
| def bans(self): | ||
| def moderation(self): | ||
| """:class:`bool`: Whether guild ban related events are enabled. |
|
|
||
| def parse_guild_audit_log_entry_create(self, data) -> None: | ||
| guild = self._get_guild(int(data["guild_id"])) | ||
| user = self.get_user(data["user_id"]) |
There was a problem hiding this comment.
Potentially make a raw event as it depends on user cache state
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Nevermind, I get it now.
|
Is this still being worked on? |
Sorry, I thought I could delay working on this PR for later without problems. |
Summary
This PR implements an
on_audit_log_entryevent. Closes #1872.Information
examples, ...).
Checklist
type: ignorecomments were used, a comment is also left explaining why.