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

Function toggle_dashboard_command

astrbot/dashboard/api/extensions.py:157–162  ·  view source on GitHub ↗
(
    payload: CommandToggleRequest,
    _username: str = Depends(require_dashboard_user),
    service: CommandService = Depends(get_command_service),
)

Source from the content-addressed store, hash-verified

155
156@legacy_router.post("/commands/toggle")
157async def toggle_dashboard_command(
158 payload: CommandToggleRequest,
159 _username: str = Depends(require_dashboard_user),
160 service: CommandService = Depends(get_command_service),
161):
162 return await _toggle_command(payload, service)
163
164
165@legacy_router.post("/commands/rename")

Callers

nothing calls this directly

Calls 1

_toggle_commandFunction · 0.85

Tested by

no test coverage detected