Skip to content

Repository files navigation

Simple framework for discord.js

  • Support: SlashCommand, Components (Buttons, Selectors), Middlewares, Events
  • Detail: Application User Commands, Guild Commands, Private Commands, User Commands

Fast Example

  • For more details see here
import{Client}from"discord.js";import{DjsFramework}from"snpk-djs-framework";constclient=newClient({// Bot intentsintents: ["Guilds","GuildMessages","DirectMessages","GuildVoiceStates",]});// Load DjsFrameworkconstdjs_frame=newDjsFramework({locations: {base: "src",commands: "handlers/commands",events: "handlers/events",components: "handlers/components",middlewares: "handlers/middlewares"},ownerIDs: ["312909267327778818"],failCallbacks: {onDontOwner: (ctx)=>{console.log(ctx);},onPermissionsClient: (ctx)=>{console.log(ctx);},onPermissionsUser: (ctx)=>{console.log(ctx);}}});// Loginclient.login("").then(()=>{djs_frame.register(client);});

About

A framework that simplifies the process of creating commands, components (buttons, selectors), events, etc.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages