Skip to content

Conversation

Tais993
Copy link
Member

@Tais993 Tais993 commented Jan 12, 2022

SlashCommand received onEvent(GenericEvent), SlashCommandAdapter received an event method for each event (as example, onMessageReceived(MessageReceivedEvent)

Closes #237

@Tais993 Tais993 added enhancement New feature or request priority: major labels Jan 12, 2022
@Tais993 Tais993 added this to the Improvement phase 1 milestone Jan 12, 2022
@Tais993 Tais993 self-assigned this Jan 12, 2022
@Tais993 Tais993 requested review from a team as code owners January 12, 2022 08:38
@CLAassistant
Copy link

CLAassistant commented Jan 12, 2022

CLA assistant check
All committers have signed the CLA.

They get registered on creation of a CommandSystem instance, this means the ReadyEvent triggers too
@Tais993 Tais993 force-pushed the event-listener-support branch from d0ed6ce to c370b54 Compare January 12, 2022 13:14
@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

@Zabuzard
Copy link
Member

I dont like this design. Goes away from what I had in mind. I think it would be better to keep slash commands and general event listeners separated. Otherwise, eventually, we end up with a behemoth of a class that can do everything instead of separating our concerns.

Maybe something up for discussion. Code-wise, looks fine though.

@Zabuzard
Copy link
Member

Zabuzard commented Jan 17, 2022

Actually, let me propose a PR shortly which adds message receiver and generic event receiver support the way I visioned it.

Edit: #345

@Tais993
Copy link
Member Author

Tais993 commented Jan 17, 2022

See new PR and issue

@Tais993 Tais993 closed this Jan 17, 2022
@Tais993 Tais993 deleted the event-listener-support branch January 17, 2022 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: major
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add arbitrary JDA event support
3 participants