diff --git a/PluralKit.Core/Database/Functions/MessageContext.cs b/PluralKit.Core/Database/Functions/MessageContext.cs index e043cf82..369479f7 100644 --- a/PluralKit.Core/Database/Functions/MessageContext.cs +++ b/PluralKit.Core/Database/Functions/MessageContext.cs @@ -10,20 +10,20 @@ namespace PluralKit.Core /// public class MessageContext { - public int? SystemId { get; set; } - public ulong? LogChannel { get; set; } - public bool InBlacklist { get; set; } - public bool InLogBlacklist { get; set; } - public bool LogCleanupEnabled { get; set; } - public bool ProxyEnabled { get; set; } - public AutoproxyMode AutoproxyMode { get; set; } - public int? AutoproxyMember { get; set; } - public ulong? LastMessage { get; set; } - public int? LastMessageMember { get; set; } - public int LastSwitch { get; set; } - public IReadOnlyList LastSwitchMembers { get; set; } = new int[0]; - public Instant LastSwitchTimestamp { get; set; } - public string? SystemTag { get; set; } - public string? SystemAvatar { get; set; } + public int? SystemId { get; } + public ulong? LogChannel { get; } + public bool InBlacklist { get; } + public bool InLogBlacklist { get; } + public bool LogCleanupEnabled { get; } + public bool ProxyEnabled { get; } + public AutoproxyMode AutoproxyMode { get; } + public int? AutoproxyMember { get; } + public ulong? LastMessage { get; } + public int? LastMessageMember { get; } + public int LastSwitch { get; } + public IReadOnlyList LastSwitchMembers { get; } = new int[0]; + public Instant LastSwitchTimestamp { get; } + public string? SystemTag { get; } + public string? SystemAvatar { get; } } } \ No newline at end of file diff --git a/PluralKit.Core/Database/Functions/ProxyMember.cs b/PluralKit.Core/Database/Functions/ProxyMember.cs index 96d12640..ff9e02fb 100644 --- a/PluralKit.Core/Database/Functions/ProxyMember.cs +++ b/PluralKit.Core/Database/Functions/ProxyMember.cs @@ -8,16 +8,16 @@ namespace PluralKit.Core /// public class ProxyMember { - public int Id { get; set; } - public IReadOnlyCollection ProxyTags { get; set; } = new ProxyTag[0]; - public bool KeepProxy { get; set; } + public int Id { get; } + public IReadOnlyCollection ProxyTags { get; } = new ProxyTag[0]; + public bool KeepProxy { get; } - public string? ServerName { get; set; } - public string? DisplayName { get; set; } - public string Name { get; set; } = ""; + public string? ServerName { get; } + public string? DisplayName { get; } + public string Name { get; } = ""; - public string? ServerAvatar { get; set; } - public string? Avatar { get; set; } + public string? ServerAvatar { get; } + public string? Avatar { get; } public string ProxyName(MessageContext ctx) => ctx.SystemTag != null ? $"{ServerName ?? DisplayName ?? Name} {ctx.SystemTag}"