Components

用于表示一组 Component

Properties

Link copied to clipboard

当前所有的组件内 Component.serializersModule 的聚合产物。

Inherited properties

Link copied to clipboard
abstract val size: Int

Functions

Link copied to clipboard
open fun findById(id: String): Component?

根据 id 寻找第一个匹配的 Component

Inherited functions

Link copied to clipboard
abstract operator fun contains(element: Component): Boolean
Link copied to clipboard
abstract fun containsAll(elements: Collection<Component>): Boolean
Link copied to clipboard
inline fun <C : Component> Components.find(): C?

根据类型寻找某个 Component

Link copied to clipboard
inline fun <C : Component> Components.get(): C

根据类型寻找某个 Component,如果找不到则抛出 NoSuchElementException

Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard
abstract operator override fun iterator(): Iterator<Component>
Link copied to clipboard

将一个 BotManager 的集合转化为 BotManagers

Link copied to clipboard
fun Collection<Component>.toComponents(parentSerializersModule: SerializersModule = EmptySerializersModule()): Components

将一个 Component 的集合转化为 Components

Link copied to clipboard

将元素集转换为 Messages 对象

Link copied to clipboard

将一个 Plugin 的集合转化为 Plugins