MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / _rename_command

Function _rename_command

astrbot/dashboard/api/extensions.py:62–72  ·  view source on GitHub ↗
(payload: CommandRenameRequest, service: CommandService)

Source from the content-addressed store, hash-verified

60
61
62async def _rename_command(payload: CommandRenameRequest, service: CommandService):
63 try:
64 return ok(
65 await service.rename_command(
66 payload.handler_full_name,
67 payload.new_name,
68 aliases=payload.aliases,
69 )
70 )
71 except CommandServiceError as exc:
72 _raise_command_error(exc)
73
74
75async def _update_command_permission(

Callers 2

update_commandFunction · 0.85
rename_dashboard_commandFunction · 0.85

Calls 3

okFunction · 0.90
_raise_command_errorFunction · 0.85
rename_commandMethod · 0.80

Tested by

no test coverage detected