-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat: Added an explanation on reactions #55
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I quite like the fact that the different emoji types are also explained, as well as the usage of raw events.
I've left a bunch of (mostly tiny) comments/suggestions - I tried to cleanly separate them, so it may seem more than it actually is. Hope I wasn't too pedantic :>
Co-authored-by: shiftinv <[email protected]> Signed-off-by: Strix <[email protected]>
Co-authored-by: shiftinv <[email protected]> Signed-off-by: Strix <[email protected]>
Co-authored-by: shiftinv <[email protected]> Signed-off-by: Strix <[email protected]>
Co-authored-by: shiftinv <[email protected]> Signed-off-by: Strix <[email protected]>
These are good suggestions Co-authored-by: shiftinv <[email protected]> Signed-off-by: Strix <[email protected]>
Merged the suggesions from Shiftinv and took their comments into consideration and made some alterations
LGTM Co-authored-by: shiftinv <[email protected]> Signed-off-by: Strix <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more formatting comments. I think that's everything now, thanks for enduring my comments so far 🙏
Co-authored-by: shiftinv <[email protected]> Signed-off-by: Strix <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to approve, my bad
Fixed some straggling spelling errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with the content so far. Can you also create corresponding files under the examples/
directory? The location convention is a part of the contributing guide.
@@ -1,8 +1,314 @@ | |||
--- | |||
description: Create polls, paginate your commands, and more. | |||
description: This section covers the topic of interacting with message reactions. Both adding them with code, and reacting to on_reaction events | |||
hide_table_of_contents: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TOC will be visible on non-WIP pages.
hide_table_of_contents: true |
Description
The guide has several pages that are currently WIP.
I took the liberty to flesh out the Reactions portion.
Am a bit unsure how to target the guide however. Reactions and its usage is somewhat basic knowledge,
and very easy to glean usage from the api docs.
Therefore i took the approach that the person reading would be quite entry level with python.
This means explaining things that might seem obvious and using a lot of comments in the code snippet.
It mainly covers the
on_raw_reaction
events since they are probably the most useful.But included a
MessageCommand
example to demonstrate working with the Reaction class since its kind of the main focus.Truth be told there's not really that much to be said about Reactions, so added things i found useful when working with reactions on my projects.
Also includes a brief primer on how Emojis work seeing as they're pretty integral to Reactions and knowing how they are supplied is important to filter events correctly.
Includes links to other parts of the guide and github to reduce repeating information that needs to be maintained and agree with each other.