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

Attention: Patch coverage is 32.62411% with 95 lines in your changes missing coverage. Please review.

Project coverage is 72.56%. Comparing base (3400b53) to head (69dc1c1).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/lib/schedule/manager/ScheduleEntry.ts 0.00% 78 Missing ⚠️
src/lib/schedule/structures/Task.ts 0.00% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2593      +/-   ##
==========================================
- Coverage   73.93%   72.56%   -1.38%     
==========================================
  Files          91       92       +1     
  Lines        4059     4195     +136     
  Branches      290      209      -81     
==========================================
+ Hits         3001     3044      +43     
- Misses       1053     1146      +93     
  Partials        5        5              

☔ 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 2 times, most recently 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