feat(bot): correctly proxy voice messages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
@@ -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; }
|
||||
}
|
Reference in New Issue
Block a user