From c1ae607e282ee4adff1ba346264f6661670dc244 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Fri, 8 Nov 2024 18:57:36 +0100 Subject: [PATCH 1/2] Add media channel type Signed-off-by: Lala Sabathil --- discord/enums.py | 1 + 1 file changed, 1 insertion(+) 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 From 572159fbc7e0efed9fe010d61a03b06aa4462f31 Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Fri, 8 Nov 2024 18:59:18 +0100 Subject: [PATCH 2/2] add type to literal Signed-off-by: Lala Sabathil --- discord/types/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):