mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-16 06:03:11 +00:00
[commands] Fix Context.reply not working with expired interactions
This commit is contained in:
parent
19fb8ac447
commit
cd0d6749ea
@ -541,7 +541,10 @@ class Context(discord.abc.Messageable, Generic[BotT]):
|
||||
:class:`~discord.Message`
|
||||
The message that was sent.
|
||||
"""
|
||||
return await self.send(content, reference=self.message, **kwargs)
|
||||
if self.interaction is None:
|
||||
return await self.send(content, reference=self.message, **kwargs)
|
||||
else:
|
||||
return await self.send(content, **kwargs)
|
||||
|
||||
async def defer(self, *, ephemeral: bool = False) -> None:
|
||||
"""|coro|
|
||||
|
Loading…
x
Reference in New Issue
Block a user