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

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants