feature: Implemented Message Reference Property (#1413)

* Added support for Message References

* Removed unused usings, added debugger display, updated ToString override

* Changed snowflakes to be wrapped in an optional instead of a nullable.
This commit is contained in:
Neuheit
2019-11-09 13:12:29 -05:00
committed by Christopher F
parent 7f0c0c9155
commit f86c39de6a
6 changed files with 90 additions and 0 deletions

View File

@@ -50,6 +50,8 @@ namespace Discord.API
// sent with Rich Presence-related chat embeds
[JsonProperty("application")]
public Optional<MessageApplication> Application { get; set; }
[JsonProperty("message_reference")]
public Optional<MessageReference> Reference { get; set; }
[JsonProperty("flags")]
public Optional<MessageFlags> Flags { get; set; }
}

View File

@@ -0,0 +1,16 @@
using Newtonsoft.Json;
namespace Discord.API
{
internal class MessageReference
{
[JsonProperty("message_id")]
public Optional<ulong> MessageId { get; set; }
[JsonProperty("channel_id")]
public ulong ChannelId { get; set; }
[JsonProperty("guild_id")]
public Optional<ulong> GuildId { get; set; }
}
}