mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +00:00
feat(bot): implement sharded http cache lookup
This commit is contained in:
parent
9ff824c37b
commit
8f9b6f1554
3 changed files with 20 additions and 14 deletions
|
|
@ -103,7 +103,7 @@ 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).BotPermissions(guildId, channelId);
|
||||
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