From 4365aced85a5a6d82aadddb244aa3ba59dd50f5d Mon Sep 17 00:00:00 2001 From: RogueException Date: Sun, 15 May 2016 02:14:41 -0300 Subject: [PATCH] Change LastMessageId to nullable --- src/Discord.Net/API/Common/Channel.cs | 2 +- src/Discord.Net/API/Common/ReadState.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net/API/Common/Channel.cs b/src/Discord.Net/API/Common/Channel.cs index 6dda88944..e724f1285 100644 --- a/src/Discord.Net/API/Common/Channel.cs +++ b/src/Discord.Net/API/Common/Channel.cs @@ -10,7 +10,7 @@ namespace Discord.API [JsonProperty("is_private")] public bool IsPrivate { get; set; } [JsonProperty("last_message_id")] - public ulong LastMessageId { get; set; } + public ulong? LastMessageId { get; set; } //GuildChannel [JsonProperty("guild_id")] diff --git a/src/Discord.Net/API/Common/ReadState.cs b/src/Discord.Net/API/Common/ReadState.cs index 6fa0c9b6e..e4177bedf 100644 --- a/src/Discord.Net/API/Common/ReadState.cs +++ b/src/Discord.Net/API/Common/ReadState.cs @@ -9,6 +9,6 @@ namespace Discord.API [JsonProperty("mention_count")] public int MentionCount { get; set; } [JsonProperty("last_message_id")] - public ulong LastMentionId { get; set; } + public ulong? LastMessageId { get; set; } } }