【发布时间】:2019-11-07 15:48:03
【问题描述】:
嘿,我想知道我是否可以检查某人是否被标记,以及他们是否获得了被标记人的用户 ID 并将其用作报告
let [cmd, user, proof, reason] = msg.content.split(' ');
let reporting = user //user being reported (usually tagged)
let reported = msg.author.tag
let reportedID = msg.author.id
let embedReply = new Discord.RichEmbed()
.setColor("PURPLE")
.setTitle("Ready to send?")
.setDescription("Please check if this is correct:")
.addField("Your name:", `${reported} (${reportedID})`)
.addField("You are reporting:", `${reporting} (${reporting.id})`)
.addField("With the proof:", proof)
.addField("With the reason:", reason)
.setFooter("Please check this report so you know what you're sending.")
【问题讨论】:
标签: javascript discord.js