Skip to content

Commit a1a4e27

Browse files
committed
refactor: rename StickerFormatTypes to match new convention
1 parent ee1d3c2 commit a1a4e27

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

interactions/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
StagePrivacyLevel,
277277
Status,
278278
Sticker,
279-
StickerFormatTypes,
279+
StickerFormatType,
280280
StickerItem,
281281
StickerPack,
282282
StickerTypes,
@@ -607,7 +607,7 @@
607607
"StagePrivacyLevel",
608608
"Status",
609609
"Sticker",
610-
"StickerFormatTypes",
610+
"StickerFormatType",
611611
"StickerItem",
612612
"StickerPack",
613613
"StickerTypes",

interactions/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
StagePrivacyLevel,
142142
Status,
143143
Sticker,
144-
StickerFormatTypes,
144+
StickerFormatType,
145145
StickerItem,
146146
StickerPack,
147147
StickerTypes,
@@ -527,7 +527,7 @@
527527
"StagePrivacyLevel",
528528
"Status",
529529
"Sticker",
530-
"StickerFormatTypes",
530+
"StickerFormatType",
531531
"StickerItem",
532532
"StickerPack",
533533
"StickerTypes",

interactions/models/discord/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
to_snowflake_list,
156156
)
157157
from .stage_instance import StageInstance
158-
from .sticker import Sticker, StickerFormatTypes, StickerItem, StickerPack, StickerTypes
158+
from .sticker import Sticker, StickerFormatType, StickerItem, StickerPack, StickerTypes
159159
from .team import Team, TeamMember
160160
from .thread import ThreadList, ThreadMember, ThreadTag
161161
from .timestamp import Timestamp, TimestampStyles
@@ -305,7 +305,7 @@
305305
"StagePrivacyLevel",
306306
"Status",
307307
"Sticker",
308-
"StickerFormatTypes",
308+
"StickerFormatType",
309309
"StickerItem",
310310
"StickerPack",
311311
"StickerTypes",

interactions/models/discord/sticker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from interactions.models.discord.user import User
1515
from interactions.models.discord.snowflake import Snowflake_Type
1616

17-
__all__ = ("StickerTypes", "StickerFormatTypes", "StickerItem", "Sticker", "StickerPack")
17+
__all__ = ("StickerTypes", "StickerFormatType", "StickerItem", "Sticker", "StickerPack")
1818

1919

2020
class StickerTypes(IntEnum):
@@ -26,7 +26,7 @@ class StickerTypes(IntEnum):
2626
"""A sticker uploaded to a Boosted guild for the guild's members."""
2727

2828

29-
class StickerFormatTypes(IntEnum):
29+
class StickerFormatType(IntEnum):
3030
"""File formats for stickers."""
3131

3232
PNG = 1
@@ -39,7 +39,7 @@ class StickerFormatTypes(IntEnum):
3939
class StickerItem(DiscordObject):
4040
name: str = attrs.field(repr=True)
4141
"""Name of the sticker."""
42-
format_type: StickerFormatTypes = attrs.field(repr=True, converter=StickerFormatTypes)
42+
format_type: StickerFormatType = attrs.field(repr=True, converter=StickerFormatType)
4343
"""Type of sticker image format."""
4444

4545

0 commit comments

Comments
 (0)