“discord.js Enviar DM al usuario específico” Código de respuesta

Discord JS Enviar DM al usuario

// In order for a bot to send a message, you need <client>.send()
// the client is where the bot will send a message to(A channel, everywhere in the server, or a PM). 
// If you want the bot to PM a certain user, you can use message.author as your client. 
mesage.author.send("LOL, I just slid into your DMs :joy:";
N!ls

dm alguien por id discord.js

Client.users.get(ID.toString()).send("Hello, how are you doing?");
Outrageous Ostrich

discord.js Enviar DM al usuario específico

client.users.fetch('USER_ID').then((user) => {
try {
	user.send("txt");	
} catch (err){
	console.log("err")
}
Condemned Crane

Respuestas similares a “discord.js Enviar DM al usuario específico”

Preguntas similares a “discord.js Enviar DM al usuario específico”

Más respuestas relacionadas con “discord.js Enviar DM al usuario específico” en JavaScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código