Skip to content

Alconna 1.8.4

Compare
Choose a tag to compare
@RF-Tar-Railt RF-Tar-Railt released this 06 Mar 07:58
· 227 commits to dev since this release

新增

  • command_manager.update 上下文方法,用于修改 Alconna 对象后更新与其绑定的其他组件

    from arclet.alconna import Args, Alconna, Option, command_manager
    
    alc = Alconna("test")
    
    with command_manager.update(alc):
        alc.prefixes = ["!"]
        alc.add(Option("foo", Args["bar", int]))
    # 解析器等将同步更新

Full Changelog: v1.8.3...v1.8.4