1.0.0 • Published 1 year ago

slashcordio v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Slashcordio

Installation:

npm i slashcordio@latest

About Slashcordio:

Slashcordio is a basic slash command wrapper which makes slash commands easier (note: It only works with discord.js)

Available Options:

  • Slash Commands Can expect more in future!

Examples:

  • Slash Commands
const { SlashCommands } = require('slashcord')
const handler = new SlashCommands({ 
    client_id: 'YOUR CLIENT ID',
    client_token: 'YOUR CLIENT TOKEN'
})

const files = handler.getFiles('./commands', 'Filter File Name') // Replace ./commands with your command folder and filter file is optional. If you want to ignore a directory or a file inside ur commands folder while fetching files, you can use that
handler.registerCommands(files)

// For Guild Commands:
handler.registerGuildCommands(files, 'YOUR GUILD ID')

Very simple and easy to use!