mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-23 11:26:51 +00:00
[commands] Fix Context.from_interaction ignoring command_failed
This commit is contained in:
parent
7d1cb08c6d
commit
6ab6b2cb96
@ -295,6 +295,7 @@ class Context(discord.abc.Messageable, Generic[BotT]):
|
|||||||
command=command, # type: ignore # this will be a hybrid command, technically
|
command=command, # type: ignore # this will be a hybrid command, technically
|
||||||
)
|
)
|
||||||
interaction._baton = ctx
|
interaction._baton = ctx
|
||||||
|
ctx.command_failed = interaction.command_failed
|
||||||
return ctx
|
return ctx
|
||||||
|
|
||||||
async def invoke(self, command: Command[CogT, P, T], /, *args: P.args, **kwargs: P.kwargs) -> T:
|
async def invoke(self, command: Command[CogT, P, T], /, *args: P.args, **kwargs: P.kwargs) -> T:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user