Skip to content
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

[modlog] Use new audit log event #5970

Merged
merged 3 commits into from Dec 26, 2023

Conversation

Zephyrkul
Copy link
Contributor

@Zephyrkul Zephyrkul commented Jan 13, 2023

Description of the changes

Uses the new audit log event instead of polling the audit logs on member ban / unban. Depends on an update to discord.py.

Have the changes in this PR been tested?

  • Yes

@github-actions github-actions bot added the Category: Core - Modlog This is related to the core Modlog API. label Jan 13, 2023
@palmtree5 palmtree5 added Blocked By: Dependency Blocked by a package listed as a dependency. Type: Optimisation Situations where too much time is necessary to complete the task. labels Jan 13, 2023
@Jackenmen Jackenmen modified the milestones: 3.5.0, 3.5.1 Jan 13, 2023
@Kowlin Kowlin removed the Blocked By: Dependency Blocked by a package listed as a dependency. label Mar 25, 2023
@Flame442 Flame442 self-assigned this Dec 26, 2023
Copy link
Member

@Flame442 Flame442 left a comment

Choose a reason for hiding this comment

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

This works fine, and greatly simplifies the code. However, this will cause a potential ""breaking"" change, in the sense that the bot requires the view_audit_log permission bit in order to get this event for a server. We should probably note this in the changelogs as a minor thing to be aware of if we are going to go forward with this change. It already needed it to read from the audit log after the event was triggered :P

@Kowlin
Copy link
Member

Kowlin commented Dec 26, 2023

Hhhmmmmmm. While I'm a bit wary about losing the on ban stuff, I think overall this is a very welcome change and I'm fine with merging it like this.

@Flame442 Flame442 merged commit 76abb7c into Cog-Creators:V3/develop Dec 26, 2023
2 checks passed
@red-githubbot red-githubbot bot added the Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. label Dec 26, 2023
@Zephyrkul Zephyrkul deleted the mod/audit-log-event branch December 27, 2023 01:44
@Jackenmen Jackenmen added Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. and removed Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. labels Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core - Modlog This is related to the core Modlog API. Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. Type: Optimisation Situations where too much time is necessary to complete the task.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants