Browse Source

[types] Use proper type for Guild.threads

pull/7032/head
Rapptz 4 years ago
parent
commit
2247fbb23a
  1. 3
      discord/types/guild.py

3
discord/types/guild.py

@ -32,6 +32,7 @@ from .role import Role
from .member import Member from .member import Member
from .emoji import Emoji from .emoji import Emoji
from .user import User from .user import User
from .threads import Thread
class Ban(TypedDict): class Ban(TypedDict):
@ -60,7 +61,7 @@ class _GuildOptional(TypedDict, total=False):
members: List[Member] members: List[Member]
channels: List[GuildChannel] channels: List[GuildChannel]
presences: List[PartialPresenceUpdate] presences: List[PartialPresenceUpdate]
threads: List[GuildChannel] threads: List[Thread]
max_presences: Optional[int] max_presences: Optional[int]
max_members: int max_members: int
premium_subscription_count: int premium_subscription_count: int

Loading…
Cancel
Save