Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
How to get a list of particular data from quickdb?

I'm trying to make list command to list the stored data for this code , I tried a lot but it doesn't work for me

run: async (client, message, args) => {
message.delete({ timeout: 1000 })
if (!client.config.bowner.includes(message.author.id)) return;
if (!args[0]) {
  return message.reply(
    new discord.MessageEmbed({
      color: client.embed.cf,
      description: "Target user not mentioned!",
    })
  );
}
const target =
  message.mentions.members.first() ||
  message.guild.members.guild.cache.get[0];

if (!args[1]) return message.reply("Add or Remove")

if (args[1] === "add") {
  db.push("noprefix" + target.id)
  return message.reply("Done").then(m => m.delete({ timeout: 3000 }))
} else if (args[1] === 'remove') {
  db.delete("noprefix" + target.id)
  return message.reply("Done").then(m => m.delete({ timeout: 3000 }))
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

In your database there's no exact noprefix db. There's always something next to noprefix as you said, + target id. So you can collect noprefix things in your one data as noprefix and make it an array, then push every noprefix things into it. Then you can use it.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!