We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discord.js
discord.js/packages/discord.js/src/structures/MessagePayload.js
Lines 195 to 198 in c2432d5
Change this selection to:
const attachments = this.options.files?.map((file, index) => ({ id: index.toString(), description: file.description, duration_secs: file.duration_secs, waveform: file.waveform }));
import getAudio from 'get-audio-duration'; await interaction.channel.send({ files: [ { attachment: "/local/audio/audio.mp3", name: 'audio.mp3', contentType: 'audio/mp3', waveform: new Buffer(new Uint8Array([1,2,3])).toString("base64"), //@ts-ignore duration_secs: await getAudio("/local/audio/audio.mp3") } ], flags: new MessageFlagsBitField([MessageFlags.IsVoiceMessage]).toJSON() });
Medium (should be fixed soon)
Message
MessageContent
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Which package is this bug report for?
discord.js
Issue description
discord.js/packages/discord.js/src/structures/MessagePayload.js
Lines 195 to 198 in c2432d5
Change this selection to:
Code sample
Versions
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
Message
Which gateway intents are you subscribing to?
MessageContent
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: