Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kabirjaipal authored Jul 20, 2022
1 parent 1523707 commit 2a98503
Showing 1 changed file with 55 additions and 15 deletions.
70 changes: 55 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@ If you have any feedback, please reach out to us at [Discord Server](https://dis

## Usage/Examples

- For Slash Command
- Commands Example
```javascript
const {
Client,
CommandInteraction,
ApplicationCommandType,
} = require("discord.js");
const { embed: ee, emoji } = require("../../../settings/config");
// chat input slash commands
const { CommandInteraction, ApplicationCommandType } = require("discord.js");
const BOT = require("../../../handlers/Client");

module.exports = {
name: "",
Expand All @@ -71,19 +68,61 @@ module.exports = {
type: ApplicationCommandType.ChatInput,
/**
*
* @param {Client} client
* @param {BOT} client
* @param {CommandInteraction} interaction
* @param {String[]} args
*/
run: async (client, interaction, args) => {
// Code
},
};
```
- for Message Command
```javascript
const { Client, Message } = require("discord.js");
const { embed: ee, emoji } = require("../../../settings/config");

// message input slash commands
const {
ContextMenuCommandInteraction,
ApplicationCommandType,
} = require("discord.js");
const BOT = require("../../../handlers/Client");

module.exports = {
name: "",
category: "",
type: ApplicationCommandType.Message,
/**
*
* @param {BOT} client
* @param {ContextMenuCommandInteraction} interaction
*/
run: async (client, interaction) => {
// Code
},
};

// user slash commands

const {
ContextMenuCommandInteraction,
ApplicationCommandType,
} = require("discord.js");
const BOT = require("../../../handlers/Client");

module.exports = {
name: "",
category: "",
type: ApplicationCommandType.User,
/**
*
* @param {BOT} client
* @param {ContextMenuCommandInteraction} interaction
*/
run: async (client, interaction) => {
// Code
},
};

// message commands
const { Message } = require("discord.js");
const BOT = require("../../../handlers/Client");

module.exports = {
name: "",
Expand All @@ -94,7 +133,7 @@ module.exports = {
cooldown: 10,
/**
*
* @param {Client} client
* @param {BOT} client
* @param {Message} message
* @param {String[]} args
* @param {String} prefix
Expand All @@ -103,10 +142,11 @@ module.exports = {
// Code
},
};

```

## License

[MIT](https://choosealicense.com/licenses/mit/)

# Thanks For Using Mine Handler Please Give a Star
# Thanks For Using Mine Handler Please Give a Star

0 comments on commit 2a98503

Please sign in to comment.