Total Complexity | 0 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # Copyright Pincer 2021-Present |
||
|
|||
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 |