Repository navigation
Command rework, attempt number 2 - #558
Merged
Merged
Conversation
Tais993
marked this pull request as draft
September 3, 2022 13:30
11 of 14 tasks
After these changes, there's support for multiple interactors with the same name, they just need to be of a different type (slash-command, message context-command, user context-command, or just a basic interactor)
Tais993
marked this pull request as ready for review
September 7, 2022 13:50
… have to waste another 500 commits like i am right now cause its such a messy and annoying setup
Member
Author
|
Reviews would be appreciated! The sooner @illuminator3 will stop complaining :p |
Tais993
requested review from
SquidXTV,
Zabuzard,
illuminator3,
marko-radosavljevic and
talentedasian
September 9, 2022 12:12
Contributor
|
change the comments, currently it only mentions slash commands add other commands as well here also it only mentions about slash command add other commands as well |
Taz03
suggested changes
Sep 11, 2022
Contributor
Zabuzard
requested changes
Sep 27, 2022
Order has been modified, the BotCore now only gets created after JDA is ready. Also removed the registerReloadCommand method from BotCore, the reload command has been removed, so that method served no purpose.
The BotCore gets after JDA is ready, because JDA is ready now, routines can be started on construction of BotCore, and commands have access to JDA's caches So now the BotCore constructor is now responsible for reloading commands and scheduling routines
For all the methods that expect a prefix name, the variable has been renamed from name to prefixedName to clarify what it means. Documentation has also been improved across the board.
Member
Author
|
Also @Zabuzard, if you accept this PR, can it be merged already? |
System has been tested now and should not contain any bugs!
4 tasks done
Zabuzard
requested changes
Sep 30, 2022
Taz03
suggested changes
Sep 30, 2022
Taz03
suggested changes
Sep 30, 2022
Spotless really is useful, huh? Co-authored-by: Tanish Azad <73871477+Taz03@users.noreply.github.com>
|
Kudos, SonarCloud Quality Gate passed! |
Taz03
approved these changes
Sep 30, 2022
Zabuzard
approved these changes
Sep 30, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.









Changes in this PR
Added interfaces
BotCommand (contains logic for every Discord command)
MessageContextCommand
UserContextCommand
Added adapters
BotCommandAdapter
Added general classes
CommandReloadUtil (reload command has been deleted, commands will be updated automatically every restart)
Renamed
SlashCommandVisibility to CommandVisibility
SlashCommandProvider to CommandProvider
For more info, see #368