mirror of
https://onedev.fprog.nl/DiscordClient
synced 2025-12-28 20:48:36 +01:00
Changed properties in Data to be nullable.
This commit is contained in:
parent
94da458afd
commit
5be4d4b557
|
|
@ -6,17 +6,17 @@ namespace DiscordClient.Data;
|
|||
public class ChannelMessagesResponse
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
public string? Id { get; set; }
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
public int Type { get; set; }
|
||||
|
||||
[JsonPropertyName("content")]
|
||||
public string Content { get; set; }
|
||||
public string? Content { get; set; }
|
||||
|
||||
[JsonPropertyName("channel_id")]
|
||||
public string ChannelId { get; set; }
|
||||
public string? ChannelId { get; set; }
|
||||
|
||||
[JsonPropertyName("author")]
|
||||
public MessageAuthor Author { get; set; }
|
||||
public MessageAuthor? Author { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@ namespace DiscordClient.Data;
|
|||
public class MessageAuthor
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
public string? Id { get; set; }
|
||||
|
||||
[JsonPropertyName("username")]
|
||||
public string Username { get; set; }
|
||||
public string? Username { get; set; }
|
||||
|
||||
[JsonPropertyName("global_name")]
|
||||
public string GlobalName { get; set; }
|
||||
public string? GlobalName { get; set; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue