“Discord.js.client” Kode Jawaban

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

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya