mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-25 18:22:07 +00:00
Update CS models, deps
This commit is contained in:
@@ -32,8 +32,8 @@ public class Member {
|
||||
[JsonPropertyName("bio")]
|
||||
public string? Bio { get; set; }
|
||||
|
||||
[JsonPropertyName("roles")]
|
||||
public List<string>? Roles { get; set; }
|
||||
[JsonPropertyName("roles"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
||||
public List<long>? Roles { get; set; }
|
||||
}
|
||||
|
||||
// Unsure if this is used anywhere outside of op14...?
|
||||
|
||||
@@ -10,7 +10,8 @@ public class Presence {
|
||||
public required PartialUser User { get; set; }
|
||||
|
||||
[JsonPropertyName("guild_id"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? GuildId { get; set; }
|
||||
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
||||
public long? GuildId { get; set; }
|
||||
|
||||
[JsonPropertyName("status")]
|
||||
public string Status { get; set; } = "unknown";
|
||||
|
||||
@@ -5,8 +5,8 @@ namespace Spacebar.Models.Generic;
|
||||
|
||||
[DebuggerDisplay("{Id} ({Username}#{Discriminator})")]
|
||||
public class PartialUser {
|
||||
[JsonPropertyName("id")]
|
||||
public required string Id { get; set; }
|
||||
[JsonPropertyName("id"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
||||
public required long Id { get; set; }
|
||||
|
||||
[JsonPropertyName("username")]
|
||||
public string Username { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user