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

108
Views
How to get bot to mention multiple members same time after command

So im trying to make command which uses express post to get live statues and when status is something it should send message and mention the member who used the command and tell the status, but in example if two member used it same time it mentions two times the last member who used the command. So how can i make it to mention both members?

Image

if(command === "test") {

    var user = message.author.username;

    twilio.calls.create({
        url: `${config.ngrok}/call`,
        to: number,
        from: from,
        statusCallback: `${config.ngrok}/status`,
        statusCallbackMethod: 'POST',
        statusCallbackEvent: ['initiated', 'ringing', 'answered', 'completed'],
    })

    app.post('/status', (req, res) => {     
        var status = req.body.CallStatus;     
        message.channel.send(`Status: ${status}, ${user}`)  
    })

}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I've made a few assumptions because you haven't shared any code but something along these lines should work:

client.on('messageCreate', message => {

     if (message.content != '.test') { return }

     message.channel.send('Mention ' + message.author.username)
})
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!