mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
collect_commands() was defined as a sync def but erroneously contained SDK bridge command registration logic with await sync_commands() inside. Extract SDK bridge registration into async _register_sdk_commands() and keep collect_commands() as pure sync (returns command list only). Also adds missing cast import.