Home > Mobile >  Getting message id from message.content djs
Getting message id from message.content djs

Time:12-01

I was working on webhook discord bot and just asking is there a way to return value of messageid id. example:

if(message.content === "msgid"){
  const messageid = 
  message.channel.send(`Your message id is ${messageid}`)
}

any help, I will appreciate it

CodePudding user response:

to return a message id. just message.id
const messageid = message.id

CodePudding user response:

Just use Message.id

const messageid = message.id
  • Related