feat(bot): correctly proxy voice messages

This commit is contained in:
spiral
2023-04-15 12:10:04 -04:00
parent 8187aa05b7
commit eefbaf0c1d
9 changed files with 21 additions and 11 deletions

View File

@@ -150,7 +150,7 @@ public class BaseRestClient: IAsyncDisposable
if (files != null)
for (var i = 0; i < files.Length; i++)
{
var (filename, stream, _) = files[i];
var (filename, stream, _, _, _) = files[i];
mfd.Add(new StreamContent(stream), $"files[{i}]", filename);
}

View File

@@ -1,3 +1,3 @@
namespace Myriad.Rest.Types;
public record MultipartFile(string Filename, Stream Data, string? Description);
public record MultipartFile(string Filename, Stream Data, string? Description, string? Waveform, float? DurationSecs);

View File

@@ -11,4 +11,5 @@ public record ExecuteWebhookRequest
public Sticker[] Stickers { get; init; }
public Message.Attachment[] Attachments { get; set; }
public AllowedMentions? AllowedMentions { get; init; }
public Message.MessageFlags? Flags { get; set; }
}