#How to send voice message

1 messages · Page 1 of 1 (latest)

flat jolt
#

How can you make the bot send a voice message? I know you can fetch it from an existing message via the attachments, but if I attempt to send it via the attachments I get an error.

hikari.errors.BadRequestError: Bad Request 400: (50161) 'Voice messages must have supporting metadata' for https://discord.com/api/v10/channels/1233525697499234385/messages
marsh rover
#

Give me a couple of hours

flat jolt
#

Oh...ok

slender ingotBOT
marsh rover
#

@flat jolt should be working on latest

#

I havent changed any code yet

#

What you cant do on latest is specify the waveform

#

pretty much all the code I have

#

maybe your ogg is missing some info?

slender ingotBOT
marsh rover
#

Works with an ogg too

flat jolt
#

I tried out some different files. I get the same error. And I am on latest

marsh rover
#

Oh, it seems like create_initial_response and create_message function differently

#

fun

marsh rover
#

will work with responding to an interaction

#

not creating a message directly

flat jolt
#

I'll try

#

Works! Thanks!

marsh rover
#

Np!

#

Ill try to get specifying a waveform to work too :)

flat jolt
#

Yeah, flat looks a little weird

marsh rover
#

Nobody has been able to reproduce how discord creates the waveform yet anyways :P

#

(at least not to my knowledge)

fickle oxide
flat jolt
flat jolt
#

It doesn’t show on mobile as a voice message

marsh rover
#

oh, fun