mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): run both local and http cache to log differences
This commit is contained in:
parent
9aad6f329c
commit
f1ad221b0f
5 changed files with 150 additions and 29 deletions
|
|
@ -102,8 +102,9 @@ public static class DiscordCacheExtensions
|
|||
|
||||
public static async Task<PermissionSet> BotPermissionsIn(this IDiscordCache cache, ulong guildId, ulong channelId)
|
||||
{
|
||||
if (cache is HttpDiscordCache)
|
||||
return await ((HttpDiscordCache)cache).BotChannelPermissions(guildId, channelId);
|
||||
// disable this for now
|
||||
//if (cache is HttpDiscordCache)
|
||||
// return await ((HttpDiscordCache)cache).BotChannelPermissions(guildId, channelId);
|
||||
|
||||
var channel = await cache.GetRootChannel(guildId, channelId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue