You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Commands/InteractionCommands/MuteInteractions.cs
+42
Original file line number
Diff line number
Diff line change
@@ -89,5 +89,47 @@ public async Task UnmuteSlashCommand(
89
89
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} That user doesn't appear to be muted, *and* an error occurred while attempting to unmute them anyway. Please contact the bot owner, the error has been logged.");
90
90
}
91
91
}
92
+
93
+
[SlashCommand("tqsmute","Temporarily mute a user in tech support channels.")]
awaitctx.EditResponseAsync(newDiscordWebhookBuilder().WithContent($"{Program.cfgjson.Emoji.Error} This command can only be used in <#{Program.cfgjson.TechSupportChannel}>, <#{Program.cfgjson.SupportForumId}>, and threads in those channels!"));
awaitctx.EditResponseAsync(newDiscordWebhookBuilder().WithContent($"{Program.cfgjson.Emoji.Error}{ctx.User.Mention}, you cannot mute other TQS or staff members."));
@@ -23,7 +24,7 @@ public async Task UnmuteCmd(CommandContext ctx, [Description("The user you're tr
23
24
Program.discord.Logger.LogWarning(eventId:Program.CliptokEventID,exception:ex,message:"Failed to unmute {user} in {server} because they weren't in the server.",$"{DiscordHelpers.UniqueUsername(targetUser)}",ctx.Guild.Name);
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} This command can only be used in <#{Program.cfgjson.TechSupportChannel}>, <#{Program.cfgjson.SupportForumId}>, and threads in those channels!");
0 commit comments