add timeout message

This commit is contained in:
13xforever
2026-01-09 23:03:13 +05:00
parent 37858ebca4
commit aec6eb8f79

View File

@@ -71,7 +71,7 @@ public static class AntiSpamMessageHandler
try
{
if (await client.GetMemberAsync(author).ConfigureAwait(false) is DiscordMember member)
await member.TimeoutAsync(DateTimeOffset.UtcNow.AddMinutes(1)).ConfigureAwait(false);
await member.TimeoutAsync(DateTimeOffset.UtcNow.AddMinutes(1), "Anti-spam filter").ConfigureAwait(false);
}
catch (Exception e)
{