feat: add support for attachment descriptions

This commit is contained in:
spiral
2021-11-19 09:34:52 -05:00
parent 36acb5bae6
commit 0ca356eec3
7 changed files with 25 additions and 7 deletions

View File

@@ -2,5 +2,5 @@ using System.IO;
namespace Myriad.Rest.Types
{
public record MultipartFile(string Filename, Stream Data);
public record MultipartFile(string Filename, Stream Data, string? Description);
}

View File

@@ -8,6 +8,7 @@ namespace Myriad.Rest.Types.Requests
public string? Username { get; init; }
public string? AvatarUrl { get; init; }
public Embed[] Embeds { get; init; }
public Message.Attachment[] Attachments { get; set; }
public AllowedMentions? AllowedMentions { get; init; }
}
}