Passed
Pull Request — main (#106)
by Yohann
01:30
created

pincer.objects.app.session_start_limit   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

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