Skip to content

Commit cfaf520

Browse files
LordOfPollsi0bs
andcommitted
feat: rename media channel to GuildMedia to fit convention
Co-authored-by: i0bs <41456914+i0bs@users.noreply.github.com>
1 parent ae77515 commit cfaf520

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

interactions/models/discord/channel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2641,7 +2641,7 @@ async def delete_tag(self, tag_id: "Snowflake_Type") -> None:
26412641

26422642

26432643
@attrs.define(eq=False, order=False, hash=False, kw_only=True)
2644-
class GuildMediaChannel(GuildForum):
2644+
class GuildMedia(GuildForum):
26452645
...
26462646

26472647

@@ -2699,7 +2699,7 @@ def process_permission_overwrites(
26992699
GuildVoice,
27002700
GuildStageVoice,
27012701
GuildForum,
2702-
GuildMediaChannel,
2702+
GuildMedia,
27032703
GuildPublicThread,
27042704
GuildForumPost,
27052705
GuildPrivateThread,
@@ -2737,5 +2737,5 @@ def process_permission_overwrites(
27372737
ChannelType.DM: DM,
27382738
ChannelType.GROUP_DM: DMGroup,
27392739
ChannelType.GUILD_FORUM: GuildForum,
2740-
ChannelType.MEDIA_CHANNEL: GuildMediaChannel,
2740+
ChannelType.MEDIA_CHANNEL: GuildMedia,
27412741
}

interactions/models/discord/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ class ChannelType(CursedIntEnum):
611611
"""Voice channel for hosting events with an audience"""
612612
GUILD_FORUM = 15
613613
"""A Forum channel"""
614-
MEDIA_CHANNEL = 16
614+
GUILD_MEDIA = 16
615615
"""Channel that can only contain threads, similar to `GUILD_FORUM` channels"""
616616

617617
@property

0 commit comments

Comments
 (0)