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

feat!: Implement support for the guild_audit_log_entry_create event #1224

Merged
merged 10 commits into from
Jan 21, 2023

Conversation

Damego
Copy link
Member

@Damego Damego commented Jan 19, 2023

About

This pull request adds new discord gateway event guild_audit_log_entry_create.
Discord api docs pr: discord/discord-api-docs#5849

Checklist

  • The pre-commit code linter has been run over all edited files to ensure the code is linted.
  • I've ensured the change(s) work on 3.8.6 and higher.
  • I have added the versionadded, versionchanged and deprecated to any new or changed user-facing function I committed.

Pull-Request specification

I've made this pull request: (check all that apply)

  • For the documentation
  • To add a new feature
  • As a general enhancement
  • As a refactor of the library/the library's code
  • To fix an existing bug
  • To resolve #ISSUENUMBER

This is:

  • A breaking change

@Damego Damego added the enhancement New feature or request label Jan 19, 2023
@Damego
Copy link
Member Author

Damego commented Jan 19, 2023

oh shit pre-commit

@Damego Damego marked this pull request as draft January 19, 2023 11:11
@Damego Damego marked this pull request as ready for review January 19, 2023 13:00
@Damego Damego changed the title feat: Implement support for the guild_audit_log_entry_create event feat!: Implement support for the guild_audit_log_entry_create event Jan 19, 2023
@Damego
Copy link
Member Author

Damego commented Jan 19, 2023

Marked it as breaking change due to rename guild_bans intent to guild_moderation

@Damego Damego requested a review from silasary January 19, 2023 15:51
@LordOfPolls LordOfPolls merged commit 2cbf5ed into interactions-py:5.x Jan 21, 2023
@Damego Damego deleted the v5-audit-log-event branch January 21, 2023 07:59
LordOfPolls added a commit that referenced this pull request Mar 13, 2023
…#1224)

* feat: Implement support for the `guild_audit_log_entry_create` event

* refactor: subclass `GuildEvent` & dont use variables

* refactor: Add `Guild` to event name

* ci: correct from checks.

* refactor: what

* feat!: Rename intent `GUILD_BANS` to `GUILD_MODERATION`

* ci: correct from checks.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: LordOfPolls <ddavidallen13@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants