closeAndJoin

open suspend fun closeAndJoin(cause: Throwable? = null)

关闭这个 Bot, 停止一切相关活动. 所有引用都会被释放.

注: 不可重新登录. 必须重新实例化一个 Bot.

Parameters

cause

原因. 为 null 时视为正常关闭, 非 null 时视为异常关闭