我需要帮助制作显示存储在数据中的名称的 jail list 命令,我的代码:
if(msg.content.startsWith(prefix + 'jail')){
if(!owners.includes(msg.author.id)) return msg.channel.send("**You Dont Have Perms ?**")
if(!msg.channel.guild) return;
let jailRole = msg.guild.roles.cache.find(n => n.name === 'Jail');
let user = msg.mentions.members.first()
let args = msg.content.split(" ").slice(1).join(" ")
if(!args[0]) return msg.channel.send('**:x: Please Mention A User**')
let there = db.get(`ja_${user.id}`)
if (there) return msg.channel.send('**This User AlREADY In Jail ⛔**')
msg.channel.send(`**${user} has been added to Jail! ✅**`)
db.set(`ja_${user.id}`, true)
user.roles.remove(user.roles.cache)
user.roles.add(jailRole)
};