Skip to content

Commit

Permalink
Change PollLayoutTypes to PollLayoutType
Browse files Browse the repository at this point in the history
  • Loading branch information
mifuyutsuki committed May 17, 2024
1 parent 194d4c3 commit aea3c24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions discord_typings/_resources/_polls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__all__ = (
'PollData',
'PollCreateRequestData',
'PollLayoutTypes',
'PollLayoutType',
'PollMediaData',
'PollAnswerData',
'PollResultsData',
Expand All @@ -23,7 +23,7 @@ class PollData(TypedDict):
answers: List['discord_typings.PollAnswerData']
expiry: Optional[str]
allow_multiselect: bool
layout_type: 'discord_typings.PollLayoutTypes'
layout_type: 'discord_typings.PollLayoutType'
results: NotRequired['discord_typings.PollResultsData']


Expand All @@ -35,13 +35,13 @@ class PollCreateRequestData(TypedDict):
answers: List['discord_typings.PollAnswerData']
duration: int
allow_multiselect: bool
layout_type: NotRequired['discord_typings.PollLayoutTypes']
layout_type: NotRequired['discord_typings.PollLayoutType']


# https://discord.com/developers/docs/resources/poll#layout-type


PollLayoutTypes = Literal[1]
PollLayoutType = Literal[1]


# https://discord.com/developers/docs/resources/poll#poll-media-object-poll-media-object-structure
Expand Down

0 comments on commit aea3c24

Please sign in to comment.