diff --git a/Commands/MuteCmds.cs b/Commands/MuteCmds.cs index e12517ad..b9f116f2 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!"));