Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.
/ SlashDiscord.js Public archive

An advanced slash command handler for discord

License

Notifications You must be signed in to change notification settings

JeroenoBoy/SlashDiscord.js

Repository files navigation

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

About

An advanced slash command handler for discord

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published