Skip to content

jonas-mtl/Discord.js-v14-Advanced-TypeScript-Handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo
Discord.js v14 TypeScript Handler

Complete system for Discord.js V.14 completely wtitten in TypeScript ~ Made by Jonas

Fork Repo discord.js node.js

Github Stars Personal Discord

⚡️ Features

  • Fully working & efficient Reload Command for developing
  • Advanced Prefix Commands Handler
  • Anti Crash Handler (toggable)
  • Select Menus & Modal Handler
  • Premium system with MongoDB
  • Cool Help Command included
  • Slash Commands Handler
  • Developer commands
  • Cooldown option
  • Events Handler
  • Button Handler

Everything Multi-Guild ready and easy to use!

📖 Screenshot

Preview

📝 Installation Guide

  • You will need to install the TypeScript compiler either globally or in your workspace to transpile TypeScript source code to JavaScript:
    • download Guidenpm install -g typescript@lastest Version 4.7.x +.
  • Adjust the settings in ./src/config.ts so everything suits you:
    • to enable the crash handler use: ERROR_HANDLING: true,
    • if you want to register your Slash Commands globally use: DEVELOPEMENT: false,
  • Install all dependencies by using npm install
  • Change the colors and icons used for Embeds in ./src/Structures/Design/
  • To run the bot:
    • build first with npm run build / tsc >> start the bot with npm run start (to start once) / npm run nodemon (to restart automatically on build) - you will need to npm install -g nodemon

⚙️ Commands & Event Options

Slash Commands:

Structure

data: [SlashCommandBuilder],
options: {
  cooldown?: number;
  isPremium?: boolean;
  description?: string;
}
execute: (interaction, client) => {}
Option Description Type Default Required?
isPremium Sets whether to set a command premium / free. bool false No
Cooldown Adds an automatic cooldown in ms to the command. number 0 No
Description Description is used to list the Commands in the /helpCommand. string No

Prefix Commands:

Structure

name: string,
description: string,
aliases: Array<string>,
permissions: Array<PermissionsString> | PermissionsString,
cooldown: number,
isPremium: boolean,
isDevCommand: boolean,
options: [{
  name: string;
  type: 'user' | 'role' | 'channel' | 'string' | 'number' | 'boolean' | string | number | boolean;
  required?: boolean;
}],
execute: (message, customArgs, client) => {}
Option Description Type Default Required?
Name Adds a name to the command. string Yes
Description Description is used to list the Commands in the /helpCommand. string No
Aliases Adds aliases for the command. string Yes
Permissions Set Permissions for the command. array / string none No
Cooldown Adds an automatic cooldown in ms to the command. number 0 No
isPremium Sets whether to set a command premium / free. bool false No
isDevCommand When enabled, command is only available in the DevGuild (config.ts). array false No

Events:

Structure

name: ClientEvent;
options: {
  ONCE?: boolean,
  REST?: boolean
};
Option Description Type Default Required?
ONCE Specifies if the event should run only once. bool false No
REST Rest parameter collects variable numbers of arguments into a single array bool false No

Buttons:

Structure

  customId: string,
  checkIfCustomIdIncludes?: boolean,
  cooldown?: number,
  isPremium?: boolean,
  permissions?: Array<PermissionsString> | PermissionsString,
  allowInteractionAuthorOnly?: boolean,
  execute: (...args: any[]) => any,
Option Description Type Default Required?
customId The buttons CustomID. string Yes
checkIfCustomIdIncludes Enables whether the Button event should execute if the interacted ButtonID includes the CustomID. boolean false No
Permissions Set Permissions for the command. array / string none No
Cooldown Adds an automatic cooldown in ms to the command. number 0 No
isPremium Sets whether to set a command premium / free. bool false No
allowInteractionAuthorOnly Enables only author / user of the message interaction to use the button bool false No

⭐️ Made by Jonas#1713

Credits for the and basic structure - basic system of the slash & events command handler go to Amit Kumar 😘

If you want to say thank you or/and support active development of the Handler:

  • Add a GitHub Star to the project & Amit Kumar's Projects.
  • Please give proper credits when you use the Handler, especially if you want to edit and post to public.
  • Add me on Discord for feedback & questions

Discord Profile

⚠️ License

The Discord.js v14 TypeScript Handler is available under the MIT License

About

advanced Discord.js v.14 Typescript Handler

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors