Quick Start
discord-bot/
├── commands/
│ ├── miscellaneous/ //this can be any name you want
│ │ └── ping.js
├── events/
│ └── ready.js
├── modules/
├── node_modules/
├── .env
├── config.js
├── index.js
├── package-lock.json
└── package.jsonconst { Client, GatewayIntentBits, Partials } = require("discord.js");
const { DiscordFeaturesHandler } = require("discord-features-handler");
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.DirectMessages,
],
partials: [Partials.Channel, Partials.Channel],
});
DiscordFeaturesHandler(client, {
config: "./config.js", // configuration file
directories: {
main: __dirname, // local path to your index.js file
},
});
Properties
Type
Required
options properties
Properties
Type
Required
Default
Create Commands
Property
Type
Required
Description
execute(message, args, client, level)
Property
Type
Required
Creating Slash Commands
Property
Type
Required
Description
Creating Events
Property
Type
Required
Description
Creating Modules
Last updated