fix: Missing MessageReference when sending files

This commit is contained in:
Paulo
2021-01-21 18:08:46 -03:00
committed by GitHub
parent 8b25c9bbfb
commit 2095701665

View File

@@ -49,6 +49,8 @@ namespace Discord.API.Rest
payload["allowed_mentions"] = AllowedMentions.Value;
if (IsSpoiler)
payload["hasSpoiler"] = IsSpoiler.ToString();
if (MessageReference.IsSpecified)
payload["message_reference"] = MessageReference.Value;
var json = new StringBuilder();
using (var text = new StringWriter(json))