From a23108f24b817aef32c717f57dc80374f0657231 Mon Sep 17 00:00:00 2001 From: spiral Date: Wed, 30 Mar 2022 04:51:33 -0400 Subject: [PATCH] fix: actually use REST guild instead of returning no permissions --- PluralKit.Bot/CommandSystem/Context/ContextChecksExt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/CommandSystem/Context/ContextChecksExt.cs b/PluralKit.Bot/CommandSystem/Context/ContextChecksExt.cs index 037145f4..7dc1f757 100644 --- a/PluralKit.Bot/CommandSystem/Context/ContextChecksExt.cs +++ b/PluralKit.Bot/CommandSystem/Context/ContextChecksExt.cs @@ -84,7 +84,7 @@ public static class ContextChecksExt // this is a quick hack, should probably do it properly eventually var guild = await ctx.Cache.TryGetGuild(channel.GuildId.Value); if (guild == null) - await ctx.Rest.GetGuild(channel.GuildId.Value); + guild = await ctx.Rest.GetGuild(channel.GuildId.Value); if (guild == null) return false;