Passed
Push — main ( 66ff12...0b8b26 )
by
unknown
01:27
created

pincer.objects.throttle_scope   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 7
dl 0
loc 27
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
from enum import Enum, auto
4
5
6
class ThrottleScope(Enum):
7
    """
8
    On what the cooldown should be set/on what should the cooldown be
9
    set.
10
11
    :param GUILD:
12
        The cooldown is per guild.
13
14
    :param CHANNEL:
15
        The cooldown is per channel.
16
17
    :param USER:
18
        The cooldown is per user.
19
20
    :param GLOBAL:
21
        The cooldown is global.
22
    """
23
    GUILD = auto()
24
    CHANNEL = auto()
25
    USER = auto()
26
    GLOBAL = auto()
27