lint/fixes, add group patch validation

This commit is contained in:
spiral
2021-09-22 13:48:34 -04:00
parent bc2c198a82
commit c472a7f6df
6 changed files with 20 additions and 12 deletions

View File

@@ -55,13 +55,13 @@ namespace PluralKit.Bot
{
if (!ShouldProxy(channel, message, ctx))
return false;
var rootChannel = _cache.GetRootChannel(message.ChannelId);
List<ProxyMember> members;
// Fetch members and try to match to a specific member
using (_metrics.Measure.Timer.Time(BotMetrics.ProxyMembersQueryTime))
{
{
await using var conn = await _db.Obtain();
members = (await _repo.GetProxyMembers(conn, message.Author.Id, message.GuildId!.Value)).ToList();
}