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

218
Vistas
discord bot that catches all dm's and send it to webhook

I want to create a bot with discord js v13 that catches all messages from dm and send it to webhook and after admin give command /reply text bot sending back admin message to a guy that wroten message to bot, i dont know how to do it, but i need it

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

To create a discord bot I recommend you to use Node.js and discord.js lib.

Get the DM

First of all you will have to use the parameter partials: ["CHANNEL"] in your client constructor to allow your bot to receive and read DM

You will have to add an handler on the messageCreate event

When the event is triggered check the message channel type, if it's DM store the the message (in an array for example) and send request to your webhook.

Respond to command

Follow this guide to setup your reply command (for example a /reply which take user as parameters)

When bot receive command (dig documentation on interactionCreate event if i good remember) get the right message in the array where you store received DM)

You are done

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