Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 644 Bytes

File metadata and controls

36 lines (22 loc) · 644 Bytes

Command 资源 - 命令管理

Command 资源提供命令管理功能,用于列出所有可用的命令。

📋 方法列表

  1. list - 列出所有可用的命令

📖 详细文档

1. list

列出所有可用的命令。

返回值:

  • List[Dict[str, Any]] - 命令列表

示例:

commands = client.commands.list()
for cmd in commands:
    print(f"{cmd['name']}: {cmd['description']}")

💡 使用建议

  1. 查看命令 - 使用 list() 查看所有可用的命令

🔗 相关资源