| Total Complexity | 0 |
| Total Lines | 30 |
| 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.api_object import APIObject |
||
| 7 | |||
| 8 | |||
| 9 | @dataclass(repr=False) |
||
| 10 | class SessionStartLimit(APIObject): |
||
| 11 | """Represents a Discord Session Start Limit |
||
| 12 | |||
| 13 | Attributes |
||
| 14 | ---------- |
||
| 15 | total: :class:`int` |
||
| 16 | The total number of session starts the current user is allowed |
||
| 17 | remaining: :class:`int` |
||
| 18 | The remaining number of session starts |
||
| 19 | the current user is allowed |
||
| 20 | reset_after: :class:`int` |
||
| 21 | The number of milliseconds after which the limit resets |
||
| 22 | max_concurrency: :class:`int` |
||
| 23 | The number of identify requests allowed per 5 seconds |
||
| 24 | """ |
||
| 25 | |||
| 26 | total: int |
||
| 27 | remaining: int |
||
| 28 | reset_after: int |
||
| 29 | max_concurrency: int |
||
| 30 |