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