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

refactor: rewrite lockdown command #2593

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

kyranet
Copy link
Member

@kyranet kyranet commented Mar 14, 2024

Changelog

  • Rewrite to slash (/lockdown).
  • Added global lockdown.
  • Added support for locking thread, category, and voice channels.
  • Added persistence for temporary lockdowns.
  • Increased maximum lockdown duration from 6 hours to 1 month.
  • Improved permissions restore in unlock.
  • Tweaked the permissions modified by the command, from Send Messages to:
    • Text-based:
      • Send Messages
      • Send Messages in Threads
      • Create Public Threads
      • Create Private Threads
    • Voice-based:
      • Connect
    • Mixed and categories:
      • All of the previous.

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.89%. Comparing base (3c790b6) to head (d0160ac).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2593      +/-   ##
==========================================
- Coverage   84.97%   84.89%   -0.09%     
==========================================
  Files         100      102       +2     
  Lines        3768     3832      +64     
  Branches      212      293      +81     
==========================================
+ Hits         3202     3253      +51     
- Misses        562      575      +13     
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kyranet kyranet changed the base branch from main to refactor/moderation/rewrite-actions-layer March 27, 2024 11:41
Base automatically changed from refactor/moderation/rewrite-actions-layer to main March 28, 2024 17:28
@kyranet kyranet force-pushed the refactor/improved-lockdown branch 3 times, most recently from 441ba5e to 5fca354 Compare March 28, 2024 19:18
@kyranet kyranet linked an issue Mar 28, 2024 that may be closed by this pull request
@kyranet kyranet force-pushed the refactor/improved-lockdown branch from 5fca354 to e0397fb Compare April 1, 2024 20:59
@kyranet kyranet force-pushed the refactor/improved-lockdown branch from e0397fb to d0160ac Compare April 5, 2024 21:46
@kyranet kyranet linked an issue Apr 21, 2024 that may be closed by this pull request
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.

feat(lockdown): add guild-wide lockdown support request(lockdown): deny create thread permissions
1 participant