mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-07-19 13:54:44 -04:00
[PR #1020] [MERGED] New feature: Warning role assignment #1021
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:feature/warn_role📝 Commits (7)
8e841ecadd new table for user ids with role070e536add warning role management in warn commandsa698331add warning role checkbox to warn context menu modalsc7ace69add warning role assignment in content filters0f9a206add warning role assignment to log and invite filters6cae0caadd role monitor for new membersf0a6a43add 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
Warningscommands.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.