mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: actually use REST guild instead of returning no permissions
This commit is contained in:
parent
7afba4ea95
commit
a23108f24b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue