QQGuildBotManager

QQ频道BOT的bot管理器。

QQGuildBotManager 不允许注册相同 appId 的bot。

Note: QQGuildBotManager 仅由内部继承实现使用,对外不稳定

Author

ForteScarlet

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

Inherited properties

Link copied to clipboard
abstract val isActive: Boolean
Link copied to clipboard
abstract val isCompleted: Boolean

Functions

Link copied to clipboard
abstract override fun all(): Sequence<QGBot>
abstract override fun all(id: ID): Sequence<QGBot>
Link copied to clipboard
open override fun configurable(configuration: SerializableBotConfiguration): Boolean
Link copied to clipboard
abstract operator override fun get(id: ID): QGBot
Link copied to clipboard
open override fun register(configuration: SerializableBotConfiguration): QGBot

注册一个Bot的信息

open fun register(ticket: Bot.Ticket): QGBot
open fun register(appId: String, secret: String, token: String): QGBot
abstract fun register(appId: String, secret: String, token: String, block: ConfigurerFunction<QGBotComponentConfiguration>?): QGBot

通过所需信息注册一个bot。

Inherited functions

Link copied to clipboard
open fun allToList(): List<Bot>
open fun allToList(id: ID): List<Bot>
Link copied to clipboard
Link copied to clipboard
abstract fun cancel(cause: Throwable?)
Link copied to clipboard
open fun find(id: ID): Bot?
Link copied to clipboard
abstract suspend fun join()
Link copied to clipboard
abstract fun onCompletion(handle: OnCompletion)