Uh oh!
There was an error while loading. Please reload this page.
feat: Added an explanation on reactions - #55
Conversation
shiftinv
left a comment
There was a problem hiding this comment.
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 :>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: Strix <thomhod@gmail.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: Strix <thomhod@gmail.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: Strix <thomhod@gmail.com>
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: Strix <thomhod@gmail.com>
These are good suggestions Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: Strix <thomhod@gmail.com>
Merged the suggesions from Shiftinv and took their comments into consideration and made some alterations
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
LGTM Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: Strix <thomhod@gmail.com>
shiftinv
left a comment
There was a problem hiding this comment.
A few more formatting comments. I think that's everything now, thanks for enduring my comments so far 🙏
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com> Signed-off-by: Strix <thomhod@gmail.com>
Fixed some straggling spelling errors
abhigyantrips
left a comment
There was a problem hiding this comment.
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.
| --- | ||
| 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.
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_reactionevents since they are probably the most useful.But included a
MessageCommandexample 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.