mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-03 04:29:54 +03:00
Fix durations blocking command handler thread
Add "This punishment will expire in" text to ban/mute notifications
This commit is contained in:
parent
04facc3de2
commit
e41a459f6f
6 changed files with 51 additions and 28 deletions
|
@ -39,11 +39,6 @@ public static class Utils {
|
|||
return $"<#{id}>";
|
||||
}
|
||||
|
||||
public static async Task StartDelayed(Task toRun, TimeSpan delay) {
|
||||
await Task.Delay(delay);
|
||||
toRun.Start();
|
||||
}
|
||||
|
||||
private static ulong ParseMention(string mention) {
|
||||
return Convert.ToUInt64(Regex.Replace(mention, "[^0-9]", ""));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue