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
if(message.MentionedUsersis not null&&message.MentionedUsers.Count>Program.cfgjson.MassMentionBanThreshold)
288
+
if((message.MentionedUsersis not null&&message.MentionedUsers.Count>Program.cfgjson.MassMentionBanThreshold)||(message.MentionedUsersCount>Program.cfgjson.MassMentionBanThreshold))
_=channel.Guild.BanMemberAsync(message.Author,TimeSpan.FromDays(7),$"Mentioned more than {Program.cfgjson.MassMentionBanThreshold} users in one message.");
301
-
stringcontent=$"{Program.cfgjson.Emoji.Banned}{message.Author.Mention} was automatically banned for mentioning **{message.MentionedUsers.Count}** users.";
301
+
varmentionCount=message.MentionedUsersis not null&&message.MentionedUsers.Count>0?message.MentionedUsers.Count:message.MentionedUsersCount;
302
+
stringcontent=$"{Program.cfgjson.Emoji.Banned}{message.Author.Mention} was automatically banned for mentioning **{mentionCount}** users.";
if(message.MentionedUsersis not null&&message.MentionedUsers.Count>=Program.cfgjson.MassMentionThreshold&&(awaitGetPermLevelAsync(member))<ServerPermLevel.Tier3)
670
+
if(((message.MentionedUsersis not null&&message.MentionedUsers.Count>=Program.cfgjson.MassMentionThreshold)||(message.MentionedUsersCount>=Program.cfgjson.MassMentionThreshold))&&(awaitGetPermLevelAsync(member))<ServerPermLevel.Tier3)
0 commit comments