aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-06-08 09:28:29 -0400
committerRapptz <[email protected]>2021-06-08 09:28:29 -0400
commit2247fbb23addf9112576b3db61e1afd99d9bfc66 (patch)
tree230030c8501baf3b1070903ec090df669f472e8e
parent[types] Split PartialVoiceState for proper gateway type (diff)
downloaddiscord.py-2247fbb23addf9112576b3db61e1afd99d9bfc66.tar.xz
discord.py-2247fbb23addf9112576b3db61e1afd99d9bfc66.zip
[types] Use proper type for Guild.threads
-rw-r--r--discord/types/guild.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/types/guild.py b/discord/types/guild.py
index 2fdf8975..c5e24b2f 100644
--- a/discord/types/guild.py
+++ b/discord/types/guild.py
@@ -32,6 +32,7 @@ from .role import Role
from .member import Member
from .emoji import Emoji
from .user import User
+from .threads import Thread
class Ban(TypedDict):
@@ -60,7 +61,7 @@ class _GuildOptional(TypedDict, total=False):
members: List[Member]
channels: List[GuildChannel]
presences: List[PartialPresenceUpdate]
- threads: List[GuildChannel]
+ threads: List[Thread]
max_presences: Optional[int]
max_members: int
premium_subscription_count: int