与标题相同。 我尝试了“ user.highestRole”,但是当我(在不和谐中)与提到的其他用户一起使用命令时,在highestRole字段中我看到了我的排名。
if(cmd === `${prefix}user`){
let user = message.mentions.users.first() || message.author;
let userInfo = new Discord.RichEmbed()
.setAuthor(user.tag, user.avatarURL)
.setThumbnail(user.displayAvatarURL)
.setFooter("Informacje Użytkownika")
.setTimestamp()
.setColor("#1d1dbb")
.addField("Nick:", user.username)
.addField("Najwyższa ranga:", user.highestRole)
答案 0 :(得分:0)
if(cmd === `${prefix}user`){
let user = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0] ) || message.author)
let userInfo = new Discord.RichEmbed()
.setAuthor(user.tag, user.avatarURL)
.setThumbnail(user.displayAvatarURL)
.setFooter("Informacje Użytkownika")
.setTimestamp()
.setColor("#1d1dbb")
.addField("Nick:", user.username)
.addField("Najwyższa ranga:", user.highestRole)
因为您需要以公会会员身份获得