Collect webhook cache statistics

This commit is contained in:
Ske
2019-07-21 04:15:47 +02:00
parent 3103df856c
commit 2620d2da9c
3 changed files with 10 additions and 3 deletions

View File

@@ -54,5 +54,7 @@ namespace PluralKit.Bot
private async Task<IWebhook> DoCreateWebhook(ITextChannel channel) => await channel.CreateWebhookAsync(WebhookName);
private bool IsWebhookMine(IWebhook arg) => arg.Creator.Id == _client.CurrentUser.Id && arg.Name == WebhookName;
public int CacheSize => _webhooks.Count;
}
}