Skip to content

Commit

Permalink
Added defaults in discord/discord-api-docs#6968
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskDuck committed Jul 10, 2024
1 parent d8f82b4 commit 39ebbb3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nextcord/polls.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ class PollCreateRequest:
----------
question: :class:`PollMedia`
The question of the poll. Current only `text` is supported.
duration: :class:`int`
The number of hours this poll should be open for.
allow_multiselect: :class:`bool`
Whether voters can select more than one choice.
duration: Optional[:class:`int`]
The number of hours this poll should be open for. Defaults to ``24``
allow_multiselect: Optional[:class:`bool`]
Whether voters can select more than one choice. Defaults to False.
answers: Optional[List[:class:`PollAnswer`]]
The answers to the poll.
If omitted then it must be added later through :func:`PollCreateRequest.add_answer`.
Expand All @@ -296,8 +296,8 @@ class PollCreateRequest:
def __init__(
self,
question: PollMedia,
duration: int,
allow_multiselect: bool,
duration: int = 24,
allow_multiselect: bool = False,
layout_type: Optional[PollLayoutType] = MISSING,
answers: Optional[List[PollAnswer]] = None,
) -> None:
Expand Down

0 comments on commit 39ebbb3

Please sign in to comment.