Skip to content

Commit

Permalink
fix: add missing channel type 16 (Pycord-Development#2639)
Browse files Browse the repository at this point in the history
* Add media channel type

Signed-off-by: Lala Sabathil <[email protected]>

* add type to literal

Signed-off-by: Lala Sabathil <[email protected]>

---------

Signed-off-by: Lala Sabathil <[email protected]>
  • Loading branch information
Lulalaby authored Nov 8, 2024
1 parent 1f17777 commit 85319f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ class ChannelType(Enum):
stage_voice = 13
directory = 14
forum = 15
media = 16

def __str__(self):
return self.name
Expand Down
2 changes: 1 addition & 1 deletion discord/types/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PermissionOverwrite(TypedDict):
deny: str


ChannelType = Literal[0, 1, 2, 3, 4, 5, 10, 11, 12, 13]
ChannelType = Literal[0, 1, 2, 3, 4, 5, 10, 11, 12, 13, 14, 15, 16]


class _BaseChannel(TypedDict):
Expand Down

0 comments on commit 85319f9

Please sign in to comment.