fix: actually use REST guild instead of returning no permissions

This commit is contained in:
spiral 2022-03-30 04:51:33 -04:00
parent 7afba4ea95
commit a23108f24b
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -84,7 +84,7 @@ public static class ContextChecksExt
// this is a quick hack, should probably do it properly eventually // this is a quick hack, should probably do it properly eventually
var guild = await ctx.Cache.TryGetGuild(channel.GuildId.Value); var guild = await ctx.Cache.TryGetGuild(channel.GuildId.Value);
if (guild == null) if (guild == null)
await ctx.Rest.GetGuild(channel.GuildId.Value); guild = await ctx.Rest.GetGuild(channel.GuildId.Value);
if (guild == null) if (guild == null)
return false; return false;