Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

109
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda