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.Channel.SendMessageAsync($"{Program.cfgjson.Emoji.Banned}{targetMember.Mention} has been banned: **{reason}**");
213
-
else
214
-
awaitctx.Channel.SendMessageAsync($"{Program.cfgjson.Emoji.Banned}{targetMember.Mention} has been banned for **{TimeHelpers.TimeToPrettyFormat(banDuration,false)}**: **{reason}**");
awaitctx.Channel.SendMessageAsync($"{Program.cfgjson.Emoji.Banned}{user.Mention} has been banned: **{reason}**");
109
-
else
110
-
awaitctx.Channel.SendMessageAsync($"{Program.cfgjson.Emoji.Banned}{user.Mention} has been banned for **{TimeHelpers.TimeToPrettyFormat(banDuration,false)}**: **{reason}**");
111
106
112
107
webhookOut.Content=$"{Program.cfgjson.Emoji.Success} User was successfully bonked.";
output.chatMessage=awaitchannel.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} <@{targetUserId}> has been banned: **{reason}**");
28
+
else
29
+
output.chatMessage=awaitchannel.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} <@{targetUserId}> has been banned for **{TimeHelpers.TimeToPrettyFormat(banDuration,false)}**: **{reason}**");
30
+
}
32
31
33
32
try
34
33
{
@@ -38,24 +37,54 @@ public static async Task<bool> BanFromServerAsync(ulong targetUserId, string rea
38
37
if(appealable)
39
38
{
40
39
if(compromisedAccount)
41
-
awaittargetMember.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} You have been banned from **{guild.Name}**!\nReason: **{reason}**\nYou can appeal the ban here: <{Program.cfgjson.AppealLink}>\nBefore appealing, please follow these steps to protect your account:\n1. Reset your Discord account password. Even if you use MFA, this will reset all session tokens.\n2. Review active sessions and authorised app connections.\n3. Ensure your PC is free of malware.\n4. [Enable MFA](https://support.discord.com/hc/en-us/articles/219576828-Setting-up-Multi-Factor-Authentication) if not already.");
40
+
output.dmMessage=awaittargetMember.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} You have been banned from **{guild.Name}**!\nReason: **{reason}**\nYou can appeal the ban here: <{Program.cfgjson.AppealLink}>\nBefore appealing, please follow these steps to protect your account:\n1. Reset your Discord account password. Even if you use MFA, this will reset all session tokens.\n2. Review active sessions and authorised app connections.\n3. Ensure your PC is free of malware.\n4. [Enable MFA](https://support.discord.com/hc/en-us/articles/219576828-Setting-up-Multi-Factor-Authentication) if not already.");
42
41
else
43
-
awaittargetMember.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} You have been banned from **{guild.Name}**!\nReason: **{reason}**\nYou can appeal the ban here: <{Program.cfgjson.AppealLink}>");
42
+
output.dmMessage=awaittargetMember.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} You have been banned from **{guild.Name}**!\nReason: **{reason}**\nYou can appeal the ban here: <{Program.cfgjson.AppealLink}>");
44
43
}
45
44
else
46
45
{
47
-
awaittargetMember.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} You have been permanently banned from **{guild.Name}**!\nReason: **{reason}**");
46
+
output.dmMessage=awaittargetMember.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} You have been permanently banned from **{guild.Name}**!\nReason: **{reason}**");
48
47
}
49
48
}
50
49
else
51
50
{
52
-
awaittargetMember.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} You have been banned from **{guild.Name}** for {TimeHelpers.TimeToPrettyFormat(banDuration,false)}!\nReason: **{reason}**\nBan expires: <t:{TimeHelpers.ToUnixTimestamp(expireTime)}:R>");
51
+
output.dmMessage=awaittargetMember.SendMessageAsync($"{Program.cfgjson.Emoji.Banned} You have been banned from **{guild.Name}** for {TimeHelpers.TimeToPrettyFormat(banDuration,false)}!\nReason: **{reason}**\nBan expires: <t:{TimeHelpers.ToUnixTimestamp(expireTime)}:R>");
0 commit comments