mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
refactor(bot): clean up cache extensions
This commit is contained in:
parent
ede9642a27
commit
d305faf401
13 changed files with 27 additions and 34 deletions
|
|
@ -156,7 +156,7 @@ public class Checks
|
|||
if (!await ctx.CheckPermissionsInGuildChannel(channel, PermissionSet.ViewChannel))
|
||||
throw new PKError(error);
|
||||
|
||||
var botPermissions = PermissionExtensions.PermissionsFor(guild, channel, _botConfig.ClientId, guildMember);
|
||||
var botPermissions = await _cache.BotPermissionsIn(channel.Id);
|
||||
|
||||
// We use a bitfield so we can set individual permission bits
|
||||
ulong missingPermissions = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue