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
|
name = ctx.invoked_name
|
||||||
if isinstance(ctx, InteractionContext) and ctx.target_id:
|
if isinstance(ctx, InteractionContext) and ctx.target_id:
|
||||||
kwargs["context target"] = ctx.target
|
kwargs["context target"] = ctx.target
|
||||||
args = " ".join(f"{k}:{v}" for k, v in kwargs.items())
|
args = " ".join(f"{k}:{v}" for k, v in kwargs.items())
|
||||||
args += " " + " ".join(args)
|
elif isinstance(ctx, MessageContext):
|
||||||
|
args = " ".join(args)
|
||||||
self.logger.debug(f"Running command `{name}` with args: {args or 'None'}")
|
self.logger.debug(f"Running command `{name}` with args: {args or 'None'}")
|
||||||
|
|
||||||
async def _sync_domains(self) -> None:
|
async def _sync_domains(self) -> None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue