Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

110
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda