You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/docs/popular-topics/reactions.mdx
+34-41Lines changed: 34 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,11 @@ In this guide we will be providing an example using the <DocsLink reference="dis
18
18
:::info
19
19
**Reaction limitations**
20
20
21
-
- To maintain a consistent reaction cache <DocsLinkreference="disnake.Intents.reactions">Intents.reactions</DocsLink> is recommended to manipulate others reactions, and is required if you intend to utilize events.
21
+
- To maintain a consistent reaction cache, <DocsLinkreference="disnake.Intents.reactions">Intents.reactions</DocsLink> is recommended to manipulate others' reactions, and is required if you intend to utilize events.
22
22
- A message can have a maximum of 20 unique reactions on it at one time.
23
23
- Reactions are inherently linked to emojis, and your bot will not have access to resend all emojis used by Discord users. ( The bot can always react to others reactions )
24
24
- Dealing with reactions results in a fair amount of extra API calls, meaning it can have rate-limit implications on deployment scale.
25
-
- Using Reactions as a UX interface was never a intended behavior, and is ultimately inferior to the newer component style interface.
25
+
- Using Reactions for user interfaces was never intended behavior, and is ultimately inferior to the newer component interface.
26
26
27
27
:::
28
28
@@ -168,27 +168,28 @@ Bots can make <DocsLink reference="disnake.ui.Button">buttons</DocsLink> using e
168
168
<TabItemvalue="deny_reactions.py"label="Deny a role using reactions">
169
169
170
170
```python
171
+
# Members with a restricted role are only allowed to react with 💙
# Members with a restricted role, are only allowed to react with 💙 -- From the docs we know that str(PartialEmoji) returns either the codepoint or <:emoji:id>
188
-
if [role for role in payload.member.roles if role.id in restricted_role_ids] andnotstr(
189
-
payload.emoji
190
-
) in allowed_emojis:
191
-
# Since the list did not return empty and is not a allowed emoji, we remove it
0 commit comments