mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-12-03 14:02:19 +00:00
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <Rapptz@users.noreply.github.com> Co-authored-by: Josh <josh.ja.butt@gmail.com>
This commit is contained in:
@@ -54,6 +54,9 @@ if TYPE_CHECKING:
|
||||
Interaction as InteractionPayload,
|
||||
InteractionData,
|
||||
)
|
||||
from .types.webhook import (
|
||||
Webhook as WebhookPayload,
|
||||
)
|
||||
from .client import Client
|
||||
from .guild import Guild
|
||||
from .state import ConnectionState
|
||||
@@ -229,7 +232,7 @@ class Interaction:
|
||||
@utils.cached_slot_property('_cs_followup')
|
||||
def followup(self) -> Webhook:
|
||||
""":class:`Webhook`: Returns the follow up webhook for follow up interactions."""
|
||||
payload = {
|
||||
payload: WebhookPayload = {
|
||||
'id': self.application_id,
|
||||
'type': 3,
|
||||
'token': self.token,
|
||||
@@ -703,7 +706,7 @@ class InteractionResponse:
|
||||
|
||||
self._responded = True
|
||||
|
||||
async def send_modal(self, modal: Modal, /):
|
||||
async def send_modal(self, modal: Modal, /) -> None:
|
||||
"""|coro|
|
||||
|
||||
Responds to this interaction by sending a modal.
|
||||
|
||||
Reference in New Issue
Block a user