| Total Complexity | 0 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # Copyright Pincer 2021-Present |
||
|
|
|||
| 2 | # Full MIT License can be found in `LICENSE` at the project root. |
||
| 3 | |||
| 4 | from __future__ import annotations |
||
| 5 | |||
| 6 | from dataclasses import dataclass |
||
| 7 | from typing import TYPE_CHECKING |
||
| 8 | |||
| 9 | from ...utils.api_object import APIObject |
||
| 10 | |||
| 11 | if TYPE_CHECKING: |
||
| 12 | from .emoji import Emoji |
||
| 13 | |||
| 14 | |||
| 15 | @dataclass(repr=False) |
||
| 16 | class Reaction(APIObject): |
||
| 17 | """Represents a Discord Reaction object |
||
| 18 | |||
| 19 | Attributes |
||
| 20 | ---------- |
||
| 21 | count: :class:`int` |
||
| 22 | Times this emoji has been used to react |
||
| 23 | me: :class:`bool` |
||
| 24 | Whether the current user reacted using this emoji |
||
| 25 | emoji: :class:`~pincer.objects.message.emoji.Emoji` |
||
| 26 | Emoji information |
||
| 27 | """ |
||
| 28 | |||
| 29 | count: int |
||
| 30 | me: bool |
||
| 31 | emoji: Emoji |
||
| 32 |