Remove setters for function models

This commit is contained in:
Ske
2020-06-13 00:42:25 +02:00
parent 761a82740f
commit c39c51426f
2 changed files with 23 additions and 23 deletions

View File

@@ -8,16 +8,16 @@ namespace PluralKit.Core
/// </summary>
public class ProxyMember
{
public int Id { get; set; }
public IReadOnlyCollection<ProxyTag> ProxyTags { get; set; } = new ProxyTag[0];
public bool KeepProxy { get; set; }
public int Id { get; }
public IReadOnlyCollection<ProxyTag> 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}"