diff --git a/README.md b/README.md
index 4ba2be8..b4c915a 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,14 @@
# djs-marshal
-![npm](https://img.shields.io/npm/v/djs-marshal?style=for-the-badge)
-![downloads](https://img.shields.io/npm/dm/djs-marshal?style=for-the-badge)
-![discord](https://img.shields.io/discord/873232757508157470?color=5865F2&label=discord&style=for-the-badge)
+[![npm](https://img.shields.io/npm/v/djs-marshal?style=for-the-badge)](https://www.npmjs.com/package/djs-marshal)
+[![downloads](https://img.shields.io/npm/dm/djs-marshal?style=for-the-badge)](https://www.npmjs.com/package/djs-marshal)
+[![discord](https://img.shields.io/discord/873232757508157470?color=5865F2&label=discord&style=for-the-badge)](https://discord.gg/qJnrRvt7wW)
A lightweight command handler for discord.js interactions
> This package requires discord.js v13 or higher to be installed
-[**Technical documentation**](https://deathvenom54.github.io/djs-marshal): Refer this because I am too lazy to write documentation
-
## Installation
```bash
@@ -23,6 +21,10 @@ yarn add djs-marshal
npm install discord.js --save
```
+## Documentation
+
+You can find the full documentation [here](https://deathvenom54.github.io/djs-marshal)
+
## Setup
You can set up your bot to handle commands in 2 ways:
diff --git a/docs/index.html b/docs/index.html
index 60ceacb..298f21f 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -2,14 +2,13 @@
djs-marshal
-
- -
+A lightweight command handler for discord.js interactions
-This package requires discord.js v13 or higher to be installed
Technical documentation: Refer this because I am too lazy to write documentation
# with npm
npm install djs-marshal --save
# with yarn
yarn add djs-marshal
# this package also requires discord.js
npm install discord.js --save
+
+ You can find the full documentation here
+Path to the buttons directory
-Specifies what information should be logged to the console
-How much information should be logged
Message to be logged when bot is ready
-Path to the select menus directory
-Path to the slash commands directory
-The bot token. Logs in the bot if provided
-Custom function for logging, if required
Generated using TypeDoc
The base options present in all types of SlashCommand
-Data for a ButtonInteraction to be executed
Options to do stuff before button is executed
@@ -13,15 +13,15 @@The customId to be executed
The function to be run when the ButtonInteraction is received
The interaction received
-A slash command registered in a specific guild
-A slash command registered either globally or in all guilds
-Options to do stuff before button is executed
defer the reply before executing
@@ -30,15 +30,15 @@The customId to be executed
The function to be run when the SelectMenuInteraction is received
The interaction received
-A slash command which will be executed when a CommandInteraction is received
-The level of logs to log
-Different console styles
Registers commands in a guild when joined
@@ -85,38 +85,38 @@The bot's Client
The SelectMenuCommands to load
-Registers commands in a guild when joined
The Guild joined
-Refreshes command permissions when a member is updated
The old member
The updated member
-Checks incoming interactions and executes slash commands if any
The incoming interaction
-Create and set up a bot for slash commands
Options for creating the bot
-Loads the buttons provided into client.buttons
The bot's Client
The buttons to load
-Loads slash commands and stores them as client.commands, then syncs them with Discord
The bot's Client
An array of SlashCommands to load
-Loads slash commands from a specified directory (does not check sub-folders)
The full path of the directory containing the command files
-Loads the select menus provided into client.selectMenus
The bot's Client
The SelectMenuCommands to load
-Syncs the slash commands with Discord
The bot's client
-Sync commands of a guild
The guild to sync
-Makes sure users with only selected permissions can use the command
The guild in which command should be checked
diff --git a/package.json b/package.json index 9a4afed..4987ce4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "djs-marshal", "description": "A simple slash command manager for typescript", - "version": "1.1.3", + "version": "1.2.0", "main": "dist/index.js", "types": "dist/index.d.ts", "repository": "https://github.com/DeathVenom54/djs-marshal.git",
Options for initializing bot. Intents are required
-