Google-AdMob
Google-AdMob

Reputation: 23

Discord.Js Message Link

So I've looked through the discord.js docs. I'm not too good at reading docs but is there a way to get the url of the message that initiated the command like:

console.log(`${message.content.URL}`)

Upvotes: 1

Views: 248

Answers (1)

Caladan
Caladan

Reputation: 2337

To get the URL of a message, you can just use .url. The code would look something like:

client.on('messageCreate', (message) => {
    const url = message.url
})

Upvotes: 2

Related Questions