Skip to content

Commit 67bf5b9

Browse files
committed
fix inverted error msgs in security actions
1 parent e2070ee commit 67bf5b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Commands/SecurityActionsCmds.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public async Task SlashPauseDMs(CommandContext ctx, [Parameter("time"), Descript
4848
else
4949
{
5050
ctx.Client.Logger.LogError("Failed to set Security Actions.\nPayload: {payload}\nResponse: {statuscode} {body}", newSecurityActions.ToString(), (int)setActionsResponse.StatusCode, await setActionsResponse.Content.ReadAsStringAsync());
51-
await ctx.RespondAsync($"{Program.cfgjson.Emoji.Error} Something went wrong and I wasn't able to unpause DMs! Discord returned status code `{setActionsResponse.StatusCode}`.");
51+
await ctx.RespondAsync($"{Program.cfgjson.Emoji.Error} Something went wrong and I wasn't able to pause DMs! Discord returned status code `{setActionsResponse.StatusCode}`.");
5252
}
5353
}
5454

@@ -97,7 +97,7 @@ public async Task SlashUnpauseDMs(CommandContext ctx)
9797
else
9898
{
9999
ctx.Client.Logger.LogError("Failed to set Security Actions.\nPayload: {payload}\nResponse: {statuscode} {body}", newSecurityActions.ToString(), (int)setActionsResponse.StatusCode, await setActionsResponse.Content.ReadAsStringAsync());
100-
await ctx.RespondAsync($"{Program.cfgjson.Emoji.Error} Something went wrong and I wasn't able to pause DMs! Discord returned status code `{setActionsResponse.StatusCode}`.");
100+
await ctx.RespondAsync($"{Program.cfgjson.Emoji.Error} Something went wrong and I wasn't able to unpause DMs! Discord returned status code `{setActionsResponse.StatusCode}`.");
101101
}
102102
}
103103
}

0 commit comments

Comments
 (0)