grpc api fix
This commit is contained in:
parent
4f01c30396
commit
4c813e95c5
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ public sealed class OtherSvc : GrpcOther.GrpcOtherBase, IEService
|
||||||
foreach (var g in guilds)
|
foreach (var g in guilds)
|
||||||
{
|
{
|
||||||
var user = await g.GetUserAsync(userId);
|
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);
|
toReturn.Add(g);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue