Package net.mamoe.mirai.console.util
Types
AnsiMessageBuilder
Link copied to clipboard
open class AnsiMessageBuilder(delegate: StringBuilder) : Appendable, Serializable
Content copied to clipboard
ConsoleExperimentalApi
Link copied to clipboard
标记一个实验性的 API.
ConsoleInput
Link copied to clipboard
ConsoleInternalApi
Link copied to clipboard
标记为一个仅供 mirai-console 内部使用的 API.
ContactUtils
Link copied to clipboard
为简化操作提供的一些工具
CoroutineScopeUtils
Link copied to clipboard
MessageScope
Link copied to clipboard
表示几个消息对象的 '域', 即消息对象的集合. 用于最小化将同一条消息发送给多个类型不同的目标的付出.
MessageUtils
Link copied to clipboard
NamedSupervisorJob
Link copied to clipboard
Content copied to clipboard
SemVersion
Link copied to clipboard
语义化版本 支持
Functions
AnsiMessageBuilder
Link copied to clipboard
asMessageScope
Link copied to clipboard
buildAnsiMessage
Link copied to clipboard
inline fun buildAnsiMessage(capacity: Int = 16, action: AnsiMessageBuilder.() -> Unit): String
Content copied to clipboard
构建一条 ANSI 信息
invoke
Link copied to clipboard
inline operator fun <R, MS : MessageScope> MS.invoke(action: MS.() -> R): R
Content copied to clipboard
使用 MessageScope 里的所有消息对象. 与 kotlin.run 相同.
requestInput
Link copied to clipboard
retryCatching
Link copied to clipboard
scopeWith
Link copied to clipboard
fun CommandSender?.scopeWith(vararg others: CommandSender?): MessageScope
Content copied to clipboard
inline fun <R> CommandSender?.scopeWith(vararg others: CommandSender?, action: MessageScope.() -> R): R
Content copied to clipboard
inline fun <R> CommandSender?.scopeWith(vararg others: MessageScope?, action: MessageScope.() -> R): R
Content copied to clipboard
inline fun <R> CommandSender?.scopeWith(vararg others: Contact?, action: MessageScope.() -> R): R
Content copied to clipboard
inline fun <R> MessageScope?.scopeWith(vararg others: CommandSender?, action: MessageScope.() -> R): R
Content copied to clipboard
inline fun <R> MessageScope?.scopeWith(vararg others: MessageScope?, action: MessageScope.() -> R): R
Content copied to clipboard
inline fun <R> MessageScope?.scopeWith(vararg others: Contact?, action: MessageScope.() -> R): R
Content copied to clipboard
inline fun <R> Contact?.scopeWith(vararg others: CommandSender?, action: MessageScope.() -> R): R
Content copied to clipboard
inline fun <R> Contact?.scopeWith(vararg others: MessageScope?, action: MessageScope.() -> R): R
Content copied to clipboard
sendAnsiMessage
Link copied to clipboard
inline suspend fun CommandSender.sendAnsiMessage(message: String): MessageReceipt<Contact>?
Content copied to clipboard
inline suspend fun CommandSender.sendAnsiMessage(capacity: Int = 16, builder: AnsiMessageBuilder.() -> Unit): MessageReceipt<Contact>?
Content copied to clipboard
向 CommandSender 发送一条带有 ANSI 控制符的信息
toMessageScope
Link copied to clipboard