From 9cbb29c20375bc4b1e6b68c3d8aa96cce40f7099 Mon Sep 17 00:00:00 2001 From: FloatingMilkshake Date: Sat, 1 Mar 2025 15:09:33 -0500 Subject: [PATCH] tqsmute: Allow usage in #bot-commands --- Commands/MuteCmds.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Commands/MuteCmds.cs b/Commands/MuteCmds.cs index e12517a..b9f116f 100644 --- a/Commands/MuteCmds.cs +++ b/Commands/MuteCmds.cs @@ -147,11 +147,12 @@ public async Task TqsMuteSlashCommand( return; } - // Only allow usage in #tech-support, #tech-support-forum, and their threads + // Only allow usage in #tech-support, #tech-support-forum, and their threads + #bot-commands if (ctx.Channel.Id != Program.cfgjson.TechSupportChannel && ctx.Channel.Id != Program.cfgjson.SupportForumId && ctx.Channel.Parent.Id != Program.cfgjson.TechSupportChannel && - ctx.Channel.Parent.Id != Program.cfgjson.SupportForumId) + ctx.Channel.Parent.Id != Program.cfgjson.SupportForumId && + ctx.Channel.Id != Program.cfgjson.BotCommandsChannel) { if (ctx is SlashCommandContext) await ctx.EditResponseAsync(new DiscordWebhookBuilder().WithContent($"{Program.cfgjson.Emoji.Error} This command can only be used in <#{Program.cfgjson.TechSupportChannel}>, <#{Program.cfgjson.SupportForumId}>, and threads in those channels!"));