Change console arg context based on context type
This commit is contained in:
parent
964c3747f1
commit
9ef53178b1
1 changed files with 3 additions and 2 deletions
|
@ -84,8 +84,9 @@ class Jarvis(Snake):
|
|||
name = ctx.invoked_name
|
||||
if isinstance(ctx, InteractionContext) and ctx.target_id:
|
||||
kwargs["context target"] = ctx.target
|
||||
args = " ".join(f"{k}:{v}" for k, v in kwargs.items())
|
||||
args += " " + " ".join(args)
|
||||
args = " ".join(f"{k}:{v}" for k, v in kwargs.items())
|
||||
elif isinstance(ctx, MessageContext):
|
||||
args = " ".join(args)
|
||||
self.logger.debug(f"Running command `{name}` with args: {args or 'None'}")
|
||||
|
||||
async def _sync_domains(self) -> None:
|
||||
|
|
Loading…
Add table
Reference in a new issue