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

feat: Added an explanation on reactions #55

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Update guide/docs/popular-topics/reactions.mdx
Co-authored-by: shiftinv <8530778+shiftinv@users.noreply.github.com>
Signed-off-by: Strix <thomhod@gmail.com>
Strixen and shiftinv authored Jan 7, 2023
commit 265d1ce2e41b5a8d79e274742858a6819d857568
5 changes: 2 additions & 3 deletions guide/docs/popular-topics/reactions.mdx
Original file line number Diff line number Diff line change
@@ -6,9 +6,8 @@ hide_table_of_contents: true
# Reactions

Reactions are Discord's way of adding emojis to other messages. Early on, before Discord introduced [components](../interactions/buttons.mdx), this system was largely used to make interactive messages and apps.
Having bots react to message reactions is less common now, and is somewhat considered legacy behaviour.
This guide will teach you the basics of how they work, since they still have their use cases.
Mainly reaction role systems and polling, but there are some other uses.
Having bots react to messages is less common now, and is somewhat considered legacy behaviour.
This guide will teach you the basics of how they work, since they still have their use cases, like reaction role systems and polling.

In Disnake reactions are represented with <DocsLink reference="disnake.Reaction">Reaction</DocsLink> objects. Whenever you operate on a <DocsLink reference="disnake.Message">Message</DocsLink> you can access a list of reactions attached to that message.
In this guide we will be providing an example using the <DocsLink reference="disnake.on_raw_reaction_add">on_raw_reaction_add / remove</DocsLink> events and a message_command's <DocsLink reference="disnake.MessageCommandInteraction">interaction</DocsLink> to demonstrate.