MiraiCode

object MiraiCode

Mirai 码相关操作.

可在 GitHub 查看 详细文档.

Functions

Link copied to clipboard
@JvmName(name = "parseMiraiCode1")
inline fun String.deserializeMiraiCode(contact: Contact? = null): MessageChain
fun deserializeMiraiCode(code: String, contact: Contact? = null): MessageChain

解析形如 "mirai:" 的 mirai 码, 即 CodableMessage.serializeToMiraiCode 返回的内容.

Link copied to clipboard
fun Array<out Message>.serializeToMiraiCode(): String
fun Iterable<Message>.serializeToMiraiCode(): String
fun Iterator<Message>.serializeToMiraiCode(): String
fun Sequence<Message>.serializeToMiraiCode(): String
fun CodableMessage.serializeToMiraiCode(): String

转换得到 mirai 码.