Browse Source

Merge 702ad07428 into 26855160f8

pull/10149/merge
Soheab 2 weeks ago
committed by GitHub
parent
commit
691318c056
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      discord/ext/commands/context.py

8
discord/ext/commands/context.py

@ -924,7 +924,7 @@ class Context(discord.abc.Messageable, Generic[BotT]):
suppress_embeds: bool = False,
ephemeral: bool = False,
silent: bool = False,
poll: Poll = MISSING,
poll: Optional[Poll] = None,
) -> Message:
"""|coro|
@ -1014,10 +1014,12 @@ class Context(discord.abc.Messageable, Generic[BotT]):
.. versionadded:: 2.2
poll: :class:`~discord.Poll`
poll: Optional[:class:`~discord.Poll`]
The poll to send with this message.
.. versionadded:: 2.4
.. versionchanged:: 2.6
This can now be ``None`` and defaults to ``None`` instead of ``MISSING``.
Raises
--------
@ -1072,7 +1074,7 @@ class Context(discord.abc.Messageable, Generic[BotT]):
'suppress_embeds': suppress_embeds,
'ephemeral': ephemeral,
'silent': silent,
'poll': poll,
'poll': MISSING if poll is None else poll,
}
if self.interaction.response.is_done():

Loading…
Cancel
Save