mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add support for Polls
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com> Co-authored-by: Josh <8677174+bijij@users.noreply.github.com> Co-authored-by: Trevor Flahardy <75498301+trevorflahardy@users.noreply.github.com>
This commit is contained in:
@ -78,6 +78,7 @@ if TYPE_CHECKING:
|
||||
from .channel import VoiceChannel, StageChannel, TextChannel, ForumChannel, CategoryChannel, DMChannel, GroupChannel
|
||||
from .threads import Thread
|
||||
from .app_commands.commands import Command, ContextMenu
|
||||
from .poll import Poll
|
||||
|
||||
InteractionChannel = Union[
|
||||
VoiceChannel,
|
||||
@ -762,6 +763,7 @@ class InteractionResponse(Generic[ClientT]):
|
||||
suppress_embeds: bool = False,
|
||||
silent: bool = False,
|
||||
delete_after: Optional[float] = None,
|
||||
poll: Poll = MISSING,
|
||||
) -> None:
|
||||
"""|coro|
|
||||
|
||||
@ -842,6 +844,7 @@ class InteractionResponse(Generic[ClientT]):
|
||||
allowed_mentions=allowed_mentions,
|
||||
flags=flags,
|
||||
view=view,
|
||||
poll=poll,
|
||||
)
|
||||
|
||||
http = parent._state.http
|
||||
|
Reference in New Issue
Block a user