diff options
Diffstat (limited to 'DiscoBot/Commands')
-rw-r--r-- | DiscoBot/Commands/MiscCommands.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/DiscoBot/Commands/MiscCommands.cs b/DiscoBot/Commands/MiscCommands.cs index bef39c6..53bc42c 100644 --- a/DiscoBot/Commands/MiscCommands.cs +++ b/DiscoBot/Commands/MiscCommands.cs @@ -180,7 +180,14 @@ namespace DiscoBot.Commands if (Permissions.Check(Context, new[] { "Admin", "Mod", "Meister" })) { - await Context.Channel.DeleteMessagesAsync(messages); + + var waiters = new List<Task>(); + foreach (var message in messages) + { + waiters.Add((message as IUserMessage).DeleteAsync()); + } + + Task.WaitAll(waiters.ToArray()); } } |