Plugins

用于表示一组 Plugin

Inherited properties

Link copied to clipboard
abstract val size: Int

Inherited functions

Link copied to clipboard
abstract operator fun contains(element: Plugin): Boolean
Link copied to clipboard
abstract fun containsAll(elements: Collection<Plugin>): Boolean
Link copied to clipboard
inline fun <P : Plugin> Plugins.find(): P?

根据类型寻找某个 Plugin

Link copied to clipboard
inline fun <P : Plugin> Plugins.get(): P

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

Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard
abstract operator override fun iterator(): Iterator<Plugin>
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