From 4c813e95c5698b62d0b62af3b4b2c6cbfbd5f748 Mon Sep 17 00:00:00 2001 From: Toastie Date: Mon, 14 Oct 2024 15:31:34 +1300 Subject: [PATCH] grpc api fix --- src/EllieBot/Services/GrpcApi/OtherSvc.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EllieBot/Services/GrpcApi/OtherSvc.cs b/src/EllieBot/Services/GrpcApi/OtherSvc.cs index 42a9cba..154acdc 100644 --- a/src/EllieBot/Services/GrpcApi/OtherSvc.cs +++ b/src/EllieBot/Services/GrpcApi/OtherSvc.cs @@ -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); }