{"repo":"flytegg/neptune","free":true,"listed":false,"github":"https://github.com/flytegg/neptune","clone":"git clone https://github.com/flytegg/neptune.git","description":"An annotation-based slash command framework for JDA.","language":"Java","stars":25,"topics":["command-framework","java","jda","bot","discord","discord-bot","kotlin"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Neptune An annotation-based slash command framework for JDA. For questions, support or to chat with the team, come join the Discord: How to Use You can create an instance of Neptune using the Builder, this allows you to control some of Neptune's functionality. Below is an example of how you can use the Builder: Note: If you do not specify any guilds, commands will be registered/unregistered globally (this can take up to 2 hours due to a Discord limitation). Commands Below is a working example of how to register a slash command. Use the @Command annotation and specify the command name, description and the required permissions. Annotate a method with @Command (the method can be called anything). The first parameter must be the SlashCommandInteractionEvent, from there you can list your arguments/options as parameters like shown below. This example will register \"/ban &lt;user [reason]\". Parameters can be annotated with the following: @Optional - Makes the argument not required @Description - Allows you to specify a description for the argument/option (if not specified will be name of argument) Once a command is run, the method will return all values. As default slash command behaviour dictates, you will have 3 seconds to respond to the command through SlashCommandInteractionEvent. See the JDA wiki for more info. If you want to unregister commands, add the clearCommands to the Builder as true , and remove the @Command annotation from your command. Listeners If you choose it in th","default_branch":null,"files":null,"tree":[],"storefront":"/r/flytegg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/flytegg/neptune/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}