Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit f98d6b6

Browse files
♻️ IntEnum to IntFlag
1 parent 569c921 commit f98d6b6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pincer/objects/app/interaction_flags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

pincer/objects/guild/permissions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
from __future__ import annotations
55

66
from dataclasses import dataclass
7-
from enum import IntEnum
7+
from enum import IntFlag
88
from typing import Tuple, Optional
99

1010

11-
class PermissionEnum(IntEnum):
11+
class PermissionEnum(IntFlag):
1212
"""
1313
Represents the permissions for a guild.
1414
"""

pincer/objects/message/user_message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from collections import defaultdict
77
from dataclasses import dataclass
8-
from enum import Enum, IntEnum
8+
from enum import Enum, IntEnum, IntFlag
99
from typing import TYPE_CHECKING, DefaultDict
1010

1111
from .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

0 commit comments

Comments
 (0)