pincer.objects.message.reaction   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 12
dl 0
loc 32
rs 10
c 0
b 0
f 0
1
# Copyright Pincer 2021-Present
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
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