Send Voice Message through bot

How I can send and receive voice message through bot api?
7 Replies
d.js toolkit
d.js toolkit10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
NyR
NyR10mo ago
Bots cannot send voice messages, you have to send it as an attachment
azeem
azeemOP10mo ago
If send him a voice message then he will send back voice message or not?
NyR
NyR10mo ago
Wdym ? Bots cannot send a voice message as I said, you can only send it as an attachment. For receiving voice messages, it'll be included in the attachments property of a Message in the messageCreate event (or Message in general)
d.js docs
d.js docs10mo ago
:property: Message#attachments A collection of attachments in the message - e.g. Pictures - mapped by their ids. (more...)
SoftNik
SoftNik10mo ago
How can my bot download / listen to voice messages? I want to build a bot that can turn voice messages into text. That's actually part of OPs question: How to receive voice messages?
NyR
NyR10mo ago
@SoftNik Read, for turning that into text, pass it to some kind of library that does that which is very much not djs related and out of the scope for this channel
Want results from more Discord servers?
Add your server