Naval-Base / yuudachi

Discord moderation bot
https://yuudachi.dev
GNU Affero General Public License v3.0
282 stars 66 forks source link

feat(reports): ability to restrict reports server wide #1171

Open JPBM135 opened 1 year ago

JPBM135 commented 1 year ago

This PR adds a sub-command to the reports command with the ability to restrict reports server wide.

[!NOTE] This PR requires a command redeploy This PR requires a migration under 1673411947-reports-restriction-level.js

Closes #1152

Config change

Command:

image

Updating levels:

image

Report examples

Restricted report:

image

Blocked report:

image
vercel[bot] commented 1 year ago

@JPBM135 is attempting to deploy a commit to the discordjs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **yuudachi-report** | ⬜️ Ignored ([Inspect](https://vercel.com/discordjs/yuudachi-report/EiaMX3EkGMZmU3k7KnsbiNQQBtdp)) | [Visit Preview](https://yuudachi-report-git-fork-jpbm135-feat-reports-toggle-discordjs.vercel.app) | | Sep 17, 2024 5:57am |
JPBM135 commented 1 year ago

Of course! This seems like an better approach than blocking completely, maybe add an option to warn or block?