From 78bc067f6d2c9d0a2021f84e7ed14aad29498c66 Mon Sep 17 00:00:00 2001 From: Ed Halley <1223980+hariedo@users.noreply.github.com> Date: Sun, 27 Jul 2025 22:11:38 -0500 Subject: [PATCH] Update UserSlashModule.cs --- DiscordBot/Modules/UserSlashModule.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/DiscordBot/Modules/UserSlashModule.cs b/DiscordBot/Modules/UserSlashModule.cs index eaa6aae4..1d2febd2 100644 --- a/DiscordBot/Modules/UserSlashModule.cs +++ b/DiscordBot/Modules/UserSlashModule.cs @@ -411,14 +411,12 @@ public async Task DuelAccept(string duelKey, string type) var loser = challengerWins ? opponent : challenger; if (type == "mute") { - // Check if any user is an Admin var isChallengerAdmin = challenger.GuildPermissions.Has(GuildPermission.Administrator); var isOpponentAdmin = opponent.GuildPermissions.Has(GuildPermission.Administrator); - // If one of them is an admin, they automatically win (but not if both are admins) - if (isChallengerAdmin ^ isOpponentAdmin) + if (isChallengerAdmin || isOpponentAdmin) { - winner = isChallengerAdmin ? challenger : opponent; - loser = isChallengerAdmin ? opponent : challenger; + // Unfair advantages are unfair. Also, bot can't mute admins. Remove the stakes. + type = "friendly"; } }