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