mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-29 18:49:53 +03:00
Bugfixes:
- Do not call RemoveUnbanAsync in guild tick loop if the user is not banned - Fix !clear message logs being reversed - Do not process MessageReceivedEvents by webhooks Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
f6f5543972
commit
4cc00e01da
4 changed files with 11 additions and 16 deletions
|
@ -17,7 +17,7 @@ public sealed class ClearCommand : ICommand {
|
|||
var messages = await channel.GetMessagesAsync((int)(toDelete + 1)).FlattenAsync();
|
||||
|
||||
var user = (SocketGuildUser)cmd.Context.User;
|
||||
var msgArray = messages.ToArray();
|
||||
var msgArray = messages.Reverse().ToArray();
|
||||
await channel.DeleteMessagesAsync(msgArray, Utils.GetRequestOptions(user.ToString()!));
|
||||
|
||||
foreach (var msg in msgArray.Where(m => !m.Author.IsBot))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue