This repository was archived by the owner on Dec 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11# Copyright Pincer 2021-Present
22# Full MIT License can be found in `LICENSE` at the project root.
33
4- from enum import IntEnum
4+ from enum import IntFlag
55
66
7- class InteractionFlags (IntEnum ):
7+ class InteractionFlags (IntFlag ):
88 """
99
1010 Attributes
Original file line number Diff line number Diff line change 44from __future__ import annotations
55
66from dataclasses import dataclass
7- from enum import IntEnum
7+ from enum import IntFlag
88from typing import Tuple , Optional
99
1010
11- class PermissionEnum (IntEnum ):
11+ class PermissionEnum (IntFlag ):
1212 """
1313 Represents the permissions for a guild.
1414 """
Original file line number Diff line number Diff line change 55
66from collections import defaultdict
77from dataclasses import dataclass
8- from enum import Enum , IntEnum
8+ from enum import Enum , IntEnum , IntFlag
99from typing import TYPE_CHECKING , DefaultDict
1010
1111from .attachment import Attachment
@@ -113,7 +113,7 @@ class MessageActivityType(IntEnum):
113113 JOIN_REQUEST = 5
114114
115115
116- class MessageFlags (IntEnum ):
116+ class MessageFlags (IntFlag ):
117117 """Special message properties.
118118
119119 Attributes
You can’t perform that action at this time.
0 commit comments