Total Complexity | 0 |
Total Lines | 31 |
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 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 |