Skip to content

Commit

Permalink
Fix typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum committed Nov 7, 2022
1 parent d1da9be commit 0b1a082
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions discord/types/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class TextChannel(_BaseGuildChannel, _TextChannelOptional):


class DefaultReaction(TypedDict):
emoji_id: NotRequired(Snowflake | None)
emoji_name: NotRequired(str | None)
emoji_id: NotRequired[Snowflake | None]
emoji_name: NotRequired[str | None]


class ForumTag(TypedDict):
Expand All @@ -91,9 +91,9 @@ class ForumTag(TypedDict):

class ForumChannel(_BaseGuildChannel, _TextChannelOptional):
type: Literal[15]
available_tags: NotRequired(list[ForumTag] | None)
default_reaction_emoji: NotRequired(DefaultReaction | None)
default_sort_order: NotRequired(SortOrder | None)
available_tags: NotRequired[list[ForumTag] | None]
default_reaction_emoji: NotRequired[DefaultReaction | None]
default_sort_order: NotRequired[SortOrder | None]
flags: ChannelFlags


Expand Down Expand Up @@ -137,7 +137,7 @@ class ThreadChannel(_BaseChannel):
message_count: int
member_count: int
thread_metadata: ThreadMetadata
applied_tags: NotRequired(list[Snowflake] | None)
applied_tags: NotRequired[list[Snowflake] | None]
flags: ChannelFlags
total_message_sent: int

Expand Down

0 comments on commit 0b1a082

Please sign in to comment.