Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

cramatsu/slash-command-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JDA Slash Command Handler

WARNING: This is just a sample program, but nothing prevents you from using working classes

Using

Main class is SlashCommandManager.java
It takes an instance of the JDA class as parameters

  • To start the listener, you need to call the .listen()
  • To add a command, call the .addCommand(SlashCommand) method. An instance of the command class must be passed to the method. Or call the .addCommands(SlashCommand ... varargs) method
  • To create a command, inherit the abstract class SlashCommand and implement the execute() method and constructor. Example

Program example


Contact with me

No longer supported