pincer.objects.events.activity   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 9
dl 0
loc 35
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 dataclasses import dataclass
5
6
from ...utils import APIObject
7
8
9
@dataclass(repr=False)
10
class ActivityJoinEvent(APIObject):
11
    """
12
    Sent when the user clicks a Rich Presence join invite in chat to join a game.
13
14
    Attributes
15
    ----------
16
    secret : :class:`str`
17
        the join_secret for the given invite
18
    """
19
20
    secret: str
21
22
23
@dataclass(repr=False)
24
class ActivitySpectateEvent(APIObject):
25
    """
26
    Sent when the user clicks a Rich Presence spectate invite in chat to spectate a game.
27
28
    Attributes
29
    ----------
30
    secret: :class:`str`
31
        the spectate_secret for the given invite
32
    """
33
34
    secret: str
35