fix: actually use REST guild instead of returning no permissions
This commit is contained in:
parent
7afba4ea95
commit
a23108f24b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user