Properly retry client creation on failure

This commit is contained in:
Ske
2019-08-12 04:42:16 +02:00
parent 5b13c1b100
commit 17c8b7b765
2 changed files with 34 additions and 9 deletions

View File

@@ -91,7 +91,7 @@ namespace PluralKit.Bot
});
}
private bool IsWebhookMine(IWebhook arg) => arg.Id == _client.CurrentUser.Id && arg.Name == WebhookName;
private bool IsWebhookMine(IWebhook arg) => arg.Creator.Id == _client.CurrentUser.Id && arg.Name == WebhookName;
public int CacheSize => _webhooks.Count;