Log updates to guild settings
This commit is contained in:
parent
dc10a8411a
commit
2148e29f54
@ -57,6 +57,7 @@ namespace PluralKit.Core {
|
|||||||
settings.AutoproxyMember
|
settings.AutoproxyMember
|
||||||
});
|
});
|
||||||
await _cache.InvalidateSystem(system);
|
await _cache.InvalidateSystem(system);
|
||||||
|
_logger.Information("Updated system guild settings {@SystemGuildSettings}", settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<PKSystem> CreateSystem(string systemName = null) {
|
public async Task<PKSystem> CreateSystem(string systemName = null) {
|
||||||
@ -258,6 +259,7 @@ namespace PluralKit.Core {
|
|||||||
await conn.ExecuteAsync(
|
await conn.ExecuteAsync(
|
||||||
"insert into member_guild (member, guild, display_name, avatar_url) values (@Member, @Guild, @DisplayName, @AvatarUrl) on conflict (member, guild) do update set display_name = @DisplayName, avatar_url = @AvatarUrl",
|
"insert into member_guild (member, guild, display_name, avatar_url) values (@Member, @Guild, @DisplayName, @AvatarUrl) on conflict (member, guild) do update set display_name = @DisplayName, avatar_url = @AvatarUrl",
|
||||||
settings);
|
settings);
|
||||||
|
_logger.Information("Updated member guild settings {@MemberGuildSettings}", settings);
|
||||||
await _cache.InvalidateSystem(member.System);
|
await _cache.InvalidateSystem(member.System);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user