“discord.js Wyślij DM do konkretnego użytkownika” Kod odpowiedzi

Discord JS Wyślij DM do użytkownika

// 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 ktoś przez idisd.js

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

discord.js Wyślij DM do konkretnego użytkownika

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

Odpowiedzi podobne do “discord.js Wyślij DM do konkretnego użytkownika”

Pytania podobne do “discord.js Wyślij DM do konkretnego użytkownika”

Więcej pokrewnych odpowiedzi na “discord.js Wyślij DM do konkretnego użytkownika” w JavaScript

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu