“discord.js.client” Réponses codées

discord.js

npm install discord.js
Undefined

discord.js.client

const {Client} = require('discord.js');
const client = new Client({ intents: 32767});
const {Token} = require("./config.json");

client.once("ready", () => {
    console.log(` ${client.user.tag} is working!`);
    client.user.setActivity(" my friend ", {type: "LISTENING"});
})

client.login(Token);
defud12345

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code