Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the specifics of how each connector interacts with events #1293

Open
Cadair opened this issue Dec 5, 2019 · 1 comment
Open

Document the specifics of how each connector interacts with events #1293

Cadair opened this issue Dec 5, 2019 · 1 comment

Comments

@Cadair
Copy link
Contributor

Cadair commented Dec 5, 2019

While we have tried to make the events framework generic and cross-connector there will be differences in interpretation and implementation of different events between connectors. (For example UserRole or Reply). We therefore should have an easy way for connector authors to document this, and also a nice concise way for users to see what events each connector supports and how they interpret them.

What I propose is that we integrate the documentation of how connectors support events into the @register_event decorator. This decorator could capture all of the docstrings for the decorated method and then output a reformatted list of supported events with their docstrings somewhere as part of the sphinx build

@jacobtomlinson
Copy link
Member

That would be awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants