How do I get my bot to send an mp3 file in a message?

if(message.content === “Paul boss”) {
message.channel.send.(’./app/assets/audio/Final Fantasy VII Advent Children - One Winged Angel (Music).mp3’)
}

you could do something like this:

const mp3 = new Discord.MessageAttachment(<filepath here>, <name of sent file>);
message.channel.send(mp3);

not 100% sure if this is the best way to do it, but it should work

1 Like