mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
[commands] Ignore delete_after for ephemeral interaction sends
This commit is contained in:
1 parent
de941ababe
commit
5357b9319b
1 file changed
+1
-1
@@ -732,6 +732,6 @@ class Context(discord.abc.Messageable, Generic[BotT]):
|
||||
await self.interaction.response.send_message(**kwargs)
|
||||
msg = await self.interaction.original_message()
|
||||
|
||||
if delete_after is not None:
|
||||
if delete_after is not None and not (ephemeral and self.interaction is not None):
|
||||
await msg.delete(delay=delete_after)
|
||||
return msg
|
||||
Reference in new issue
Block a user