withExecutableScope

inline fun <T> withExecutableScope(executable: OneBotApiExecutable, action: OneBotApiExecutableScope.() -> T): T(source)

OneBotApiExecutableScope 的作用域下执行 action

withExecutableScope(executable) {
api.execute()
}

Since

1.1.0