fix(emotes): mark required properties to silence CS8618

Mark Emote.Id, Top100.Id, Top100.Code and Top100.ImageType as required
so the JSON deserializer enforces the contract instead of relying on
default-null semantics. Removes the four CS8618 warnings the build has
been carrying since v0.4.0.
This commit is contained in:
2026-05-02 21:17:57 +02:00
parent e66ae1f5b4
commit da3c1f6832
+4 -4
View File
@@ -35,20 +35,20 @@ public static class EmoteCache
public Emote Emote { get; set; }
[JsonPropertyName("id")]
public string Id { get; set; }
public required string Id { get; set; }
}
[Serializable]
public struct Emote()
{
[JsonPropertyName("id")]
public string Id { get; set; }
public required string Id { get; set; }
[JsonPropertyName("code")]
public string Code { get; set; }
public required string Code { get; set; }
[JsonPropertyName("imageType")]
public string ImageType { get; set; }
public required string ImageType { get; set; }
}
public enum LoadingState