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

@@ -217,7 +217,8 @@ public class ProxyService
FileSizeLimit = guild.FileSizeLimit(),
Embeds = embeds.ToArray(),
Stickers = trigger.StickerItems,
AllowEveryone = allowEveryone
AllowEveryone = allowEveryone,
Flags = trigger.Flags.HasFlag(Message.MessageFlags.VoiceMessage) ? Message.MessageFlags.VoiceMessage : null,
});
await HandleProxyExecutedActions(ctx, autoproxySettings, trigger, proxyMessage, match);
}