pincer.objects.app.session_start_limit   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 9
dl 0
loc 30
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.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