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
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!"));
234
235
else
235
-
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} This command can only be used in <#{Program.cfgjson.TechSupportChannel}>, <#{Program.cfgjson.SupportForumId}>, and threads in those channels!");
236
+
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} This command can only be used in <#{Program.cfgjson.TechSupportChannel}>, <#{Program.cfgjson.SupportForumId}>, their threads, and <#{Program.cfgjson.BotCommandsChannel}>!");
236
237
return;
237
238
}
238
239
@@ -248,7 +249,12 @@ public async Task TqsMuteSlashCommand(
248
249
}
249
250
catch(DSharpPlus.Exceptions.NotFoundException)
250
251
{
251
-
// handled below
252
+
// couldn't fetch member, fail
253
+
if(ctxisSlashCommandContext)
254
+
awaitctx.EditResponseAsync($"{Program.cfgjson.Emoji.Error} That user doesn't appear to be in the server!");
255
+
else
256
+
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} That user doesn't appear to be in the server!");
257
+
return;
252
258
}
253
259
254
260
if(awaitProgram.db.HashExistsAsync("mutes",targetUser.Id)&&targetMemberis not null&&targetMember.Roles.Contains(tqsMutedRole))
@@ -270,14 +276,6 @@ public async Task TqsMuteSlashCommand(
0 commit comments