mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 17:20:14 +00:00
feat(bot): correctly proxy voice messages
This commit is contained in:
parent
8187aa05b7
commit
eefbaf0c1d
9 changed files with 21 additions and 11 deletions
|
|
@ -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; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue