Reputation: 23
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:
discord.js
console.log(`${message.content.URL}`)
Upvotes: 1
Views: 248
Reputation: 2337
To get the URL of a message, you can just use .url. The code would look something like:
.url
client.on('messageCreate', (message) => { const url = message.url })
Upvotes: 2