Skip to content

Commit

Permalink
fix: add note for custom support in jsk_source command
Browse files Browse the repository at this point in the history
  • Loading branch information
staciax committed Oct 28, 2024
1 parent 14f69ba commit 419c85d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lattebot/cogs/jsk.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ async def jsk(self, ctx: commands.Context[LatteBot]) -> None:
@Feature.Command(parent='jsk', name='source', aliases=['src']) # type: ignore
async def jsk_source(self, ctx: commands.Context[LatteBot], *, command_name: str) -> None:
"""Display the source code for an app command."""

# NOTE: custom for support app command

command = self.bot.get_command(command_name) or self.bot.tree.get_command(command_name)
if not command:
await ctx.send(f"Couldn't find command `{command_name}`.")
Expand Down

0 comments on commit 419c85d

Please sign in to comment.