Skip to content

Commit 85319f9

Browse files
authored
fix: add missing channel type 16 (#2639)
* 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]>
1 parent 1f17777 commit 85319f9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

discord/enums.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ class ChannelType(Enum):
224224
stage_voice = 13
225225
directory = 14
226226
forum = 15
227+
media = 16
227228

228229
def __str__(self):
229230
return self.name

discord/types/channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class PermissionOverwrite(TypedDict):
4444
deny: str
4545

4646

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

4949

5050
class _BaseChannel(TypedDict):

0 commit comments

Comments
 (0)