| Total Complexity | 0 |
| Total Lines | 35 |
| 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 | Attributes |
||
| 15 | ---------- |
||
| 16 | secret : :class:`str` |
||
| 17 | the join_secret for the given invite |
||
| 18 | """ |
||
| 19 | |||
| 20 | secret: str |
||
| 21 | |||
| 22 | |||
| 23 | @dataclass |
||
| 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 |