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 new automod features #1372

Merged
merged 3 commits into from
May 2, 2023
Merged

feat: implement new automod features #1372

merged 3 commits into from
May 2, 2023

Conversation

LordOfPolls
Copy link
Contributor

Pull Request Type

  • Feature addition
  • Bugfix
  • Documentation update
  • Code refactor
  • Tests improvement
  • CI/CD pipeline enhancement
  • Other: [Replace with a description]

Description

Updates automod support to be in sync with features available in the client, per discord/discord-api-docs#6040

Changes

  • Add missing entries to auto mod enums
  • Implement MemberProfileTrigger and BlockMemberInteraction classes

Related Issues

#1363

Test Scenarios

Create and trigger auto mod rules in the client while a bot is listening for them

Python Compatibility

  • I've ensured my code works on Python 3.10.x
  • I've ensured my code works on Python 3.11.x

Checklist

  • I've run the pre-commit code linter over all edited files
  • I've tested my changes on supported Python versions
  • I've added tests for my code, if applicable
  • I've updated / added documentation, where applicable

@LordOfPolls
Copy link
Contributor Author

This feature is in beta testing, however contrary to ddev docs (which seem to be stagnant rn) it has been deployed to a majority of servers so this will be merged regardless of ddev docs state

@codecov-commenter
Copy link

codecov-commenter commented May 2, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.03 🎉

Comparison is base (7c00cff) 47.45% compared to head (f63f46b) 47.49%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1372      +/-   ##
============================================
+ Coverage     47.45%   47.49%   +0.03%     
============================================
  Files           139      139              
  Lines         14515    14526      +11     
============================================
+ Hits           6888     6899      +11     
  Misses         7627     7627              
Impacted Files Coverage Δ
interactions/models/discord/auto_mod.py 69.64% <100.00%> (+1.51%) ⬆️
interactions/models/discord/enums.py 96.52% <100.00%> (+0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: LordOfPolls <ddavidallen13@gmail.com>
@LordOfPolls LordOfPolls merged commit 70f5110 into unstable May 2, 2023
@LordOfPolls LordOfPolls deleted the automod-update branch May 2, 2023 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants