Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
how to collect user message in DM in Discord.js

I'm trying to gather a user's response to my bot's message, but it's all happening in DMs. How can I complete this task with Discord.js (13.x)?

    const Discord = require('discord.js');
const intents = new Discord.Intents(32767);
const client = new Discord.Client({ intents });
const config = require('./config.json');
const privateMessage = require('./private-message');
client.on('ready', () => {
    console.log('Ready!');

    privateMessage(client, '!match', 'hello please enter your birthday as this following format day/month ')

})


client.login(config.token)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You would want to use a collector for that. There is a easy guide on the discord.js website.

https://discordjs.guide/popular-topics/collectors.html

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!