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

282
Views
unhandledpromiserejectionwarning error status code 400 || Discord Bot Error

Now im pretty stupid so i dont exactly get coding and what not but i do have some expirence with basic javaS,

so I recently implanted this code and suddenly after every command used I get this error msg unhandledpromiserejectionwarning error status code 400

        if (msg.content.startsWith(`${prefix}`)) {
        let Q5 = msg.content.substr(1);


        async function TOD() {

            var res = await axios.get(`https://api.truthordarebot.xyz/api/${Q5}`);
            var Q1 = res.data.question
            console.log("The TOD Command Was Used")

            const girlEmbed = new Discord.MessageEmbed()
            .setTitle(`***${Q1}***`)
            .setColor(randomHexColor())
            .setFooter(footer)
            msg.channel.send(girlEmbed)

        }

        
        

        TOD()
    }
    
about 4 years ago · Santiago Trujillo
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!