Skip to content

Conversation

@Tais993
Copy link
Member

@Tais993 Tais993 commented Sep 30, 2022

I might forgot to test it properly after copying the initial PR, slash commands worked but forgot to check context commands (stupid, bad example I agree)

So therefor a fix: this also contains minor improvements of BotCore and UserInteractorPrefix

In BotCore:
Removed requireSlashCommand, and added requireUserInteractor. This works based on generics, very useful.

Also added UserInteractorPrefix#getPrefixedName(String)

In BotCore: Removed requireSlashCommand, and added requireUserInteractor. This works based on generics, very useful. Also added UserInteractorPrefix#getPrefixedName(String)
@Tais993 Tais993 requested review from a team as code owners September 30, 2022 14:20
@Tais993 Tais993 requested a review from Zabuzard September 30, 2022 14:34
- fixed issues with requireUserInteractor and javadoc - removed obsolete prefix check that was done twice - fixed "escape of this during construction" - fail-fast for null check
@sonarqubecloud
Copy link

Copy link
Member

@Zabuzard Zabuzard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, can confirm it works.

@Zabuzard Zabuzard merged commit 72d4b3c into develop Sep 30, 2022
@Zabuzard Zabuzard deleted the bugfix/i_forgot_to_test branch September 30, 2022 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants