diff --git a/jarvis/client.py b/jarvis/client.py index 12b0380..cd9ee8a 100644 --- a/jarvis/client.py +++ b/jarvis/client.py @@ -79,9 +79,9 @@ class Jarvis(Snake): if update["domain"] in self.phishing_domains: self.phishing_domains.remove(update["domain"]) - async def _prerun(self, ctx: InteractionContext, *args, **kwargs) -> None: + async def _prerun(self, ctx: Context, *args, **kwargs) -> None: name = ctx.invoked_name - if ctx.target_id: + if isinstance(ctx, InteractionContext) and ctx.target_id: kwargs["context target"] = ctx.target args = " ".join(f"{k}:{v}" for k, v in kwargs.items()) self.logger.debug(f"Running command `{name}` with args: {args or 'None'}")