Appearance
bindCapabilities<B>(bot, registry): B & BotBase
B
bot
registry
BotBase
把能力注册表中的实现绑定为 bot 的方法。 适配器在 start() 里对自己创建的 bot 调用一次, 插件拿到的 bot 就带上了完整操作面。
start()
B extends object
object
CapabilityRegistry
B & BotBase