Skip to content

Commit b19a745

Browse files
committed
fix typing for ctx.respond return
1 parent b5f2187 commit b19a745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/commands/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
from .commands import ApplicationCommand, Option
3737
from ..cog import Cog
38-
from ..webhook import Webhook
38+
from ..webhook import WebhookMessage
3939
from typing import Callable
4040

4141
from ..guild import Guild
@@ -133,7 +133,7 @@ def response(self) -> InteractionResponse:
133133
return self.interaction.response
134134

135135
@property
136-
def respond(self) -> Callable[..., Union[Interaction, Webhook]]:
136+
def respond(self) -> Callable[..., Union[Interaction, WebhookMessage]]:
137137
"""Callable[..., Union[:class:`~.Interaction`, :class:`~.Webhook`]]: Sends either a response
138138
or a followup response depending if the interaction has been responded to yet or not."""
139139
if not self.response.is_done():

0 commit comments

Comments
 (0)