📜  discord js如何提及bot - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:29.383000             🧑  作者: Mango

代码示例1
//to mention bot you need the client.user
//like this

client.on('message' , message => {
    if(message.isMemberMentioned(client.user)) return message.channel.send(client.user)
})
//don't worry about the isMemberMentioned i only used it to make the bot detect if it's was mentioned