mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
add timeout message
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user