Discord Client

Codes to create discord client

// Define Discord from discord.js module 
const Discord = require("discord.js");
// Or import it from falls.djs module, there is no difference.
const Discord = fallsDjs.Discord;

const client = new Discord.Client({
    intents: [new Discord.Intents("32767")] // this is bitcode of all intents.
})

// Token and Prefix.
const env = {
    "token": "",
    "prefix": "!"
}

client.on('ready', () => {
    console.log('I\'m ready!');
});

client.login(env.token);

Last updated