Adding reply for message age > 2 weeks
This commit is contained in:
parent
cb4cc8601f
commit
ac762c8f0a
@ -28,6 +28,8 @@ namespace ChaosBot.Discord.Modules.Admin
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if(ex.Message.Contains("Messages must be younger than two weeks old."))
|
||||
await ReplyAsync($"{Context.User.Mention}, You cannot delete messages older then 2 weeks old.");
|
||||
_logger.Error($"AdminCommands.ClearCommand: Exception [{ex}] thrown, <[{ex.Message}]>.");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user