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
|
|
@ -40,7 +40,7 @@ public class SerilogGatewayEnricherFactory
|
|||
|
||||
if (await _cache.TryGetChannel(channel.Value) != null)
|
||||
{
|
||||
var botPermissions = await _cache.PermissionsIn(channel.Value);
|
||||
var botPermissions = await _cache.BotPermissionsIn(channel.Value);
|
||||
props.Add(new LogEventProperty("BotPermissions", new ScalarValue(botPermissions)));
|
||||
}
|
||||
}
|
||||
|
|
@ -52,7 +52,7 @@ public class SerilogGatewayEnricherFactory
|
|||
props.Add(new LogEventProperty("UserId", new ScalarValue(user.Value)));
|
||||
|
||||
if (evt is MessageCreateEvent mce)
|
||||
props.Add(new LogEventProperty("UserPermissions", new ScalarValue(await _cache.PermissionsFor(mce))));
|
||||
props.Add(new LogEventProperty("UserPermissions", new ScalarValue(await _cache.PermissionsForMCE(mce))));
|
||||
|
||||
return new Inner(props);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue