Aliases now support %target% placeholder. For example 'alias .bft .bf %target% t'

This commit is contained in:
Kwoth
2022-10-22 23:33:42 +02:00
parent cb98f4aa15
commit e68e948a80
3 changed files with 11 additions and 43 deletions

View File

@@ -144,11 +144,11 @@ public static class Extensions
public static IEmbedBuilder WithErrorColor(this IEmbedBuilder eb)
=> eb.WithColor(EmbedColor.Error);
public static IMessage DeleteAfter(this IUserMessage msg, int seconds, ILogCommandService? logService = null)
public static IMessage DeleteAfter(this IUserMessage msg, float seconds, ILogCommandService? logService = null)
{
Task.Run(async () =>
{
await Task.Delay(seconds * 1000);
await Task.Delay((int)(seconds * 1000));
if (logService is not null)
logService.AddDeleteIgnore(msg.Id);