Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Slash Support into Flight (3.0.0) (#19)
* Starting * functional slash command stuff * Fixing argument parsing of Context commands * Support basic argument parsing, functional stuff. * Allow filling in args with default values * Defaults take precedence over null * 3.0.0 * Event emitter changes, extra stuff. * Upgrade Gradle version to compile to Java 17 (#16) * Upgrade Gradle version to compile to Java 17 * Fix MessageContext to reflect changes in the JDA API. * Pushing changes * Cleanup build.gradle and a few warnings. * Another attempt to fix Jitpack builds * Another. * Update permissions of gradlew * Gradle wrapper. * Works on my PC? * An oversight * Working locally. * Expose JDA in Context * Expose Member in Context * cleanup parsers * Simplify discriminator check * Extract if out of else statement * Consistent and concise naming * Build against JDA 5.0.0-alpha.17 * Add reply handling to SlashContext * Remove debug logging * CommandRegistry#toDiscordCommands, argument descriptions * Filter slash or higher * Implement slashFriendlyName in argument * Use Argument.slashFriendlyName * strictly match an uppercase char to denote split boundary * Accept java types as well... * Lazily instantiate slashFriendlyName, match options to it * Trial int conversion * Description may not be empty. * Improve SLASH_NAME_REGEX * Crude number range support * Slash subcommand support * Bump to JDA alpha 18, deprecate Attachment, bug fix Attachment OptionType * Switch to value to avoid keyword usage * Provide ways of clearing cooldowns * Implement checks for slash commands * Docs for new CooldownProvider methods * Detect executionContext from Context parameter type * Update JDA to JDA5 alpha 22, fix classes after channel refactor (#17) * Fixing compilation error in pull #17 (#18) * Update JDA to JDA5 alpha 22, fix classes after channel refactor * Fix compilation error in CommandClient * Improvements to help command. * Register DefaultEventAdapter when none are present Co-authored-by: Abel Moarrensis <[email protected]> Co-authored-by: Duale Siad <[email protected]>
- Loading branch information