Passed
Pull Request — main (#174)
by
unknown
01:43
created

pincer.objects.events.activity   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

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