如何使用快速数据库列出存储的数据?

时间:2021-07-03 14:04:11

标签: discord discord.js quick.db

我尝试使用 list 命令列出此代码的存储数据,我尝试了很多但对我不起作用,

client.on("message", message=>{
    if(!message.guild)return;
    if(message.content.startsWith(prefix + "add")){
    let user = message.mentions.users.first()
        
        if(!user) return message.channel.send('**:x: You have to mention someone first.**')
            if(db.fetch(`owner_${user.id}`)) return message.channel.send("**This user is already exists**")
        
        db.set(`owner_${user.id}`, true)
        message.channel.send(new Discord.MessageEmbed().setColor('#4C6E70').setDescription(`**${user} Done.**`)).then(async msg => {
            msg.react("✅")
        })
    }
 }
    });

0 个答案:

没有答案