add forward support to audio

This commit is contained in:
bignutty 2025-04-14 21:02:38 +02:00
parent 7f5644799e
commit b676182d86
2 changed files with 3 additions and 1 deletions

View file

@ -33,6 +33,7 @@ module.exports = {
return editOrReply(context, createEmbed("error", context, "Unable to fetch message."))
}
let urls = msg.content.match(urlr)
if(msg.messageSnapshots?.length >= 1) urls = msg.messageSnapshots.first().message.content.match(urlr);
if (urls) {
let songlink = await superagent.get(`https://api.song.link/v1-alpha.1/links`)
.query({