Changed properties in Data to be nullable.

This commit is contained in:
Filip Strajnar 2024-03-24 16:45:52 +01:00
parent 94da458afd
commit 5be4d4b557
2 changed files with 7 additions and 7 deletions

View file

@ -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; }
}

View file

@ -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; }
}