grpc api fix

This commit is contained in:
Toastie (DCS Team) 2024-10-14 15:31:34 +13:00
parent 4f01c30396
commit 4c813e95c5
No known key found for this signature in database

View file

@ -69,7 +69,7 @@ public sealed class OtherSvc : GrpcOther.GrpcOtherBase, IEService
foreach (var g in guilds)
{
var user = await g.GetUserAsync(userId);
if (user.GuildPermissions.Has(GuildPermission.Administrator))
if (user is not null && user.GuildPermissions.Has(GuildPermission.Administrator))
toReturn.Add(g);
}