1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2026-04-03 11:10:05 +00:00

Fix for muted role change caching until bot restarts

This commit is contained in:
2018-04-30 19:14:41 +02:00
parent dd01dba88d
commit b106785ebc
2 changed files with 3 additions and 2 deletions

View File

@@ -13,10 +13,11 @@ namespace DeukBot4.Database.ServerSettings
}
public ulong ServerId { get; }
public ulong MutedRoleId { get; }
public ulong MutedRoleId { get; private set; }
public async Task SetMutedRoleId(ulong id)
{
MutedRoleId = id;
using (var conn = new DatabaseConnection())
{
using (var cmd = new NpgsqlCommand())