mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-12-12 05:06:14 +00:00
ah yes, I'm very smart
This commit is contained in:
parent
51b219d37e
commit
27907c7ee1
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user