mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Handle presence updates that don't contain a username
This commit is contained in:
@@ -272,8 +272,7 @@ public class DiscordUserModel
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public required string Id { get; set; }
|
||||
[JsonPropertyName("username")]
|
||||
public required string Username { get; set; }
|
||||
[JsonPropertyName("username")] public string? Username { get; set; } = null;
|
||||
[JsonPropertyName("global_name")]
|
||||
public string? GlobalName { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user