refactor: cache own user ID in IDiscordCache
- remove Cluster.User - remove Cluster.Application (it was only being used as an alternative to Cluster.User for some reason) - move Bot.PermissionsIn to DiscordCacheExtensions
This commit is contained in:
@@ -42,7 +42,7 @@ namespace PluralKit.Bot
|
||||
|
||||
if (await _cache.TryGetChannel(channel.Value) != null)
|
||||
{
|
||||
var botPermissions = await _bot.PermissionsIn(channel.Value);
|
||||
var botPermissions = await _cache.PermissionsIn(channel.Value);
|
||||
props.Add(new("BotPermissions", new ScalarValue(botPermissions)));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user