ah yes, I'm very smart

This commit is contained in:
13xforever 2020-02-05 23:33:40 +05:00
parent 51b219d37e
commit 27907c7ee1

View File

@ -84,12 +84,13 @@ namespace CompatBot.Database.Providers
try
{
var result = await client.GetInviteByCodeAsync(invite.InviteCode).ConfigureAwait(false);
if (result?.IsRevoked == false)
if (result?.IsRevoked == true)
invite.InviteCode = null;
}
catch (NotFoundException)
{
invite.InviteCode = null;
Config.Log.Info($"Removed invite code {invite.InviteCode} for server {invite.Name}");
}
catch (Exception e)
{