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 mute command #62

Merged
merged 2 commits into from
Sep 8, 2023
Merged

feat: implement mute command #62

merged 2 commits into from
Sep 8, 2023

Conversation

HeadTriXz
Copy link
Owner

Closes #16, part of #24.

  • adds a /mute command.
  • adds missing permission to /kick
  • adds a getDuration method which parses the duration from a human readable string (e.g. 1 hour 5 minutes)

@HeadTriXz HeadTriXz added enhancement New feature or request barry labels Sep 8, 2023
@HeadTriXz HeadTriXz added this to the 1.0.0 milestone Sep 8, 2023
@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

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

Comparison is base (22e2f05) 99.28% compared to head (df7fa0e) 99.29%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
+ Coverage   99.28%   99.29%   +0.01%     
==========================================
  Files         107      109       +2     
  Lines       12283    12514     +231     
  Branches     1321     1348      +27     
==========================================
+ Hits        12195    12426     +231     
  Misses         88       88              
Flag Coverage Δ
barry 98.96% <100.00%> (+0.02%) ⬆️
core 99.92% <ø> (ø)
logger 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...odules/moderation/commands/chatinput/kick/index.ts 100.00% <100.00%> (ø)
...odules/moderation/commands/chatinput/mute/index.ts 100.00% <100.00%> (ø)
...ry/src/modules/moderation/functions/getDuration.ts 100.00% <100.00%> (ø)
.../src/modules/moderation/functions/getLogContent.ts 100.00% <100.00%> (ø)

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

@HeadTriXz HeadTriXz merged commit e42f00e into main Sep 8, 2023
6 checks passed
@HeadTriXz HeadTriXz deleted the mod-mute branch September 8, 2023 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
barry enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create command for muting users
1 participant