From 85319f9222fc67883bd28d674ca5ec1c64714b48 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Fri, 8 Nov 2024 19:01:31 +0100 Subject: [PATCH] fix: add missing channel type 16 (#2639) * Add media channel type Signed-off-by: Lala Sabathil * add type to literal Signed-off-by: Lala Sabathil --------- Signed-off-by: Lala Sabathil --- discord/enums.py | 1 + discord/types/channel.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/enums.py b/discord/enums.py index 14aa54d460..91425b8cf8 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -224,6 +224,7 @@ class ChannelType(Enum): stage_voice = 13 directory = 14 forum = 15 + media = 16 def __str__(self): return self.name diff --git a/discord/types/channel.py b/discord/types/channel.py index 1b7fb1fe5e..822ee9283f 100644 --- a/discord/types/channel.py +++ b/discord/types/channel.py @@ -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):