mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +00:00
Update D.NET version and add bulk deletion support
This commit is contained in:
parent
4fe80749c4
commit
11eabe2e3d
5 changed files with 26 additions and 6 deletions
|
|
@ -271,6 +271,12 @@ namespace PluralKit.Bot
|
|||
await _messageStorage.Delete(message.Id);
|
||||
}
|
||||
|
||||
public async Task HandleMessageBulkDeleteAsync(IReadOnlyCollection<Cacheable<IMessage, ulong>> messages, IMessageChannel channel)
|
||||
{
|
||||
_logger.Information("Bulk deleting {Count} messages in channel {Channel}", messages.Count, channel.Id);
|
||||
await _messageStorage.BulkDelete(messages.Select(m => m.Id).ToList());
|
||||
}
|
||||
|
||||
private string FixClyde(string name)
|
||||
{
|
||||
var match = Regex.Match(name, "clyde", RegexOptions.IgnoreCase);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue