Skip to content

This is a slash command handler for discord.js bots. I made it myself and it's just like a regular command handler. Let me know what you think! :D

Notifications You must be signed in to change notification settings

Larkify/Interaction-Handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Karma

𝗜𝗻𝘁𝗲𝗿𝗮𝗰𝘁𝗶𝗼𝗻 𝗛𝗮𝗻𝗱𝗹𝗲𝗿

A simple slash-command handler for Discord.JS, (requires discord.js@latest)
Explore the docs »

NOTE: This is a little outdated, and the code quality isn't so good. However, it should still work!

𝗜𝗻𝘀𝘁𝗮𝗹𝗹𝗮𝘁𝗶𝗼𝗻

  • Add interactionEvent.js.js to a folder within your root directory.
  • Add the snippet of code (ready-event-snippet.js) to your ready event.
  • Create a folder called "interactions" and add all of your code there for slash commands.

𝗙𝗶𝗹𝗲 𝗦𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗲

You don't have to have your like this, but it's how I've set it up in the code so if you wish to edit it, you can :D

root/
├─ index.js
|
├─ interactions/
│  ├─ ping.js
│  ├─ foobar.js
|
├─ events/
│  ├─ ready.js
|  ├─ interactionEvent.js

𝗘𝘅𝘁𝗿𝗮 𝗜𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻

  1. I've added the module.export example in the example folder that you need in all of your slash command files (interactions/) in order for them to register.
  2. If you need any help, join my discord or open up an issue on this repository.
  3. Let me know of any suggestions or improvements you have, but yeh! Enjoy :)

About

This is a slash command handler for discord.js bots. I made it myself and it's just like a regular command handler. Let me know what you think! :D

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published