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

158
Visualizações
Can't send a message to the Twitch chat using JS

I'm trying to make a script in the dev console to get a list of vip users on twitch and find out the date of the last message on the channel. To do this, I need to send a command /vips to the chat, and after receiving the list, send a command /user for each user. But I can't do it in the console, because when I try to enter text using js

document.querySelector('[data-a-target="chat-input"]').value = 'text'

it doesn't show inside the textarea tag (I entered the text 'text' manually).

<textarea data-a-target="chat-input" data-test-selector="chat-input" aria-label="Send message" class="ScInputBase-sc-1wz0osy-0 ScTextArea-sc-1ywwys8-0 fIywXv iMyRUS InjectLayout-sc-588ddc-0 lmkkDK tw-textarea tw-textarea--no-resize" autocomplete="twitch-chat" maxlength="500" placeholder="Send message" rows="2" style="padding-right: 6.5rem; padding-left: 3.8rem;">text</textarea>

The text that I entered is displayed in the chat for a few seconds and then disappears. How can I send a chat message using only the console?

about 4 years ago · Juan Pablo Isaza
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