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

160
Vistas
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 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