Add missing generic parameters on various Interaction parameters

This commit is contained in:
Rapptz
2023-01-19 07:00:09 -05:00
parent c677ad0312
commit bbba8c650f
5 changed files with 23 additions and 21 deletions

View File

@ -31,6 +31,7 @@ from copy import deepcopy
from typing import TYPE_CHECKING, Any, Dict, Optional, Sequence, ClassVar, List
from ..utils import MISSING, find
from .._types import ClientT
from .item import Item
from .view import View
@ -134,7 +135,7 @@ class Modal(View):
super().__init__(timeout=timeout)
async def on_submit(self, interaction: Interaction, /) -> None:
async def on_submit(self, interaction: Interaction[ClientT], /) -> None:
"""|coro|
Called when the modal is submitted.
@ -146,7 +147,7 @@ class Modal(View):
"""
pass
async def on_error(self, interaction: Interaction, error: Exception, /) -> None:
async def on_error(self, interaction: Interaction[ClientT], error: Exception, /) -> None:
"""|coro|
A callback that is called when :meth:`on_submit`