[PR #1020] [MERGED] New feature: Warning role assignment #1021

Closed
opened 2026-06-05 16:14:38 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RPCS3/discord-bot/pull/1020
Author: @13xforever
Created: 3/14/2026
Status: Merged
Merged: 3/14/2026
Merged by: @13xforever

Base: masterHead: feature/warn_role


📝 Commits (7)

  • 8e841ec add new table for user ids with role
  • 070e536 add warning role management in warn commands
  • a698331 add warning role checkbox to warn context menu modals
  • c7ace69 add warning role assignment in content filters
  • 0f9a206 add warning role assignment to log and invite filters
  • 6cae0ca add role monitor for new members
  • f0a6a43 add explicit role management commands

📊 Changes

17 files changed (+845 additions, -94 deletions)

View changed files

📝 .config/dotnet-tools.json (+2 -2)
📝 CompatBot/Commands/Audit.cs (+1 -1)
📝 CompatBot/Commands/Warnings.ContextMenus.cs (+26 -9)
CompatBot/Commands/Warnings.Role.cs (+84 -0)
📝 CompatBot/Commands/Warnings.cs (+78 -59)
📝 CompatBot/Config.cs (+1 -0)
📝 CompatBot/Database/BotDb.cs (+16 -6)
CompatBot/Database/Migrations/BotDb/20260314092704_AddWarningRole.Designer.cs (+454 -0)
CompatBot/Database/Migrations/BotDb/20260314092704_AddWarningRole.cs (+40 -0)
📝 CompatBot/Database/Migrations/BotDb/BotDbModelSnapshot.cs (+22 -2)
📝 CompatBot/Database/Providers/ContentFilter.cs (+4 -2)
📝 CompatBot/EventHandlers/DiscordInviteFilter.cs (+6 -4)
📝 CompatBot/EventHandlers/LogParsingHandler.cs (+4 -2)
📝 CompatBot/Program.cs (+1 -0)
CompatBot/UserRolesValidationMonitor.cs (+21 -0)
📝 CompatBot/Utils/Extensions/DiscordClientExtensions.cs (+38 -5)
📝 CompatBot/Utils/Extensions/DiscordUserExtensions.cs (+47 -2)

📄 Description

New arguments and modal options to assign a specific Warning role for Warnings commands.

For feature to be visible/active, you need to set the new configuration parameter WarnRoleId.

This PR implements #976


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/RPCS3/discord-bot/pull/1020 **Author:** [@13xforever](https://github.com/13xforever) **Created:** 3/14/2026 **Status:** ✅ Merged **Merged:** 3/14/2026 **Merged by:** [@13xforever](https://github.com/13xforever) **Base:** `master` ← **Head:** `feature/warn_role` --- ### 📝 Commits (7) - [`8e841ec`](https://github.com/RPCS3/discord-bot/commit/8e841ec51403fa3c52a4ca3b68e2dff0175280dd) add new table for user ids with role - [`070e536`](https://github.com/RPCS3/discord-bot/commit/070e536d0d7dfe3412ab103a42b3aafeb795587f) add warning role management in warn commands - [`a698331`](https://github.com/RPCS3/discord-bot/commit/a698331de9d126ac0c20c731e0eade93765ba81b) add warning role checkbox to warn context menu modals - [`c7ace69`](https://github.com/RPCS3/discord-bot/commit/c7ace691b7595387226458502e8f4f2d6ed5040d) add warning role assignment in content filters - [`0f9a206`](https://github.com/RPCS3/discord-bot/commit/0f9a2065f0aafecc2416254b4d6418684af62a57) add warning role assignment to log and invite filters - [`6cae0ca`](https://github.com/RPCS3/discord-bot/commit/6cae0ca29eb2e2193f5f3c8ac558681413b66748) add role monitor for new members - [`f0a6a43`](https://github.com/RPCS3/discord-bot/commit/f0a6a438ac4a17c9d8f9d34265af6c6c19f9672b) add explicit role management commands ### 📊 Changes **17 files changed** (+845 additions, -94 deletions) <details> <summary>View changed files</summary> 📝 `.config/dotnet-tools.json` (+2 -2) 📝 `CompatBot/Commands/Audit.cs` (+1 -1) 📝 `CompatBot/Commands/Warnings.ContextMenus.cs` (+26 -9) ➕ `CompatBot/Commands/Warnings.Role.cs` (+84 -0) 📝 `CompatBot/Commands/Warnings.cs` (+78 -59) 📝 `CompatBot/Config.cs` (+1 -0) 📝 `CompatBot/Database/BotDb.cs` (+16 -6) ➕ `CompatBot/Database/Migrations/BotDb/20260314092704_AddWarningRole.Designer.cs` (+454 -0) ➕ `CompatBot/Database/Migrations/BotDb/20260314092704_AddWarningRole.cs` (+40 -0) 📝 `CompatBot/Database/Migrations/BotDb/BotDbModelSnapshot.cs` (+22 -2) 📝 `CompatBot/Database/Providers/ContentFilter.cs` (+4 -2) 📝 `CompatBot/EventHandlers/DiscordInviteFilter.cs` (+6 -4) 📝 `CompatBot/EventHandlers/LogParsingHandler.cs` (+4 -2) 📝 `CompatBot/Program.cs` (+1 -0) ➕ `CompatBot/UserRolesValidationMonitor.cs` (+21 -0) 📝 `CompatBot/Utils/Extensions/DiscordClientExtensions.cs` (+38 -5) 📝 `CompatBot/Utils/Extensions/DiscordUserExtensions.cs` (+47 -2) </details> ### 📄 Description New arguments and modal options to assign a specific Warning role for `Warnings` commands. For feature to be visible/active, you need to set the new configuration parameter `WarnRoleId`. This PR implements #976 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 16:14:38 -04:00
yindo closed this issue 2026-06-05 16:14:38 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RPCS3/discord-bot#1021