Skip to content

Added ban/warn buttons to /report - #1593

Merged
Zabuzard merged 6 commits into
developfrom
feature/report_ban_warn_buttons
Nov 14, 2026
Merged

Zabuzard merged 6 commits into
developfrom
feature/report_ban_warn_buttons

Conversation

@Zabuzard

@Zabuzard Zabuzard commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Adds a Ban and Warn button to /report, so mods can quick-act with custom actions.

When clicking, a modal opens to enter the ban/warn reason (and for ban also the duration - unfortunately the current JDA version doesnt yet support dropdowns (new ones do), so its pure text input).

No code duplication with BanCommand and WarnCommand by moving the shared logic into ModerationUtils.

Fixes #1588

Warn

grafik grafik grafik

Ban

grafik grafik

and improved code duplication by using ModerationUtils more
@Zabuzard Zabuzard self-assigned this Nov 14, 2026
@Zabuzard
Zabuzard requested a review from a team as a code owner November 14, 2026 19:11
@Zabuzard
Zabuzard merged commit 1aa9e0b into develop Nov 14, 2026
8 checks passed
@Zabuzard
Zabuzard deleted the feature/report_ban_warn_buttons branch November 14, 2026 19:45
@sonarqubecloud

Copy link
Copy Markdown

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.

Add Ban/Warn to quick-actions for /this-is-against-rules

1 participant