1.0.12 • Published 3 years ago

slashdiscord.js v1.0.12

Weekly downloads
31
License
MIT
Repository
github
Last release
3 years ago

SlashDiscord.js

An advanced slash command handler for discord Docs

npm i SlashDiscord.js

or

yarn add SlashDiscord.js

Example

Here is a simple command handler to get you started

const { Client } = require('discord.js');
const { SlashCommandHandler } = require('slashdiscord.js');

const client = new Client();
const handler = new SlashCommandHandler({
	client
});

handler.addCommand({
	name: 'Hello',
	description: 'My first command.'
})
.run(interaction => {
	interaction.reply('Hello World!')
})


client.login('YOUR_BOT_TOKEN');

Testing

  1. run npm i or yarn install
  2. Duplicate the .example.env file and call it .env
  3. fill in your bot token and client id in the .env file
  4. execute the command npm test or yarn test
1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago