MiraiAudio

See also

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open suspend override fun originalMiraiMessage(contact: Contact): Audio

直接得到 originalMiraiMessage, 不会使用 contact

open suspend override fun originalMiraiMessage(contact: Contact, isDropAction: Boolean): Audio

直接得到 originalMiraiMessage, 不会使用 contactisDropAction

Link copied to clipboard
abstract override fun toString(): String

Properties

Link copied to clipboard
open val codec: AudioCodec
Link copied to clipboard
open val extraData: ByteArray?
Link copied to clipboard
open val fileMd5: ByteArray
Link copied to clipboard
open val filename: String
Link copied to clipboard
open val fileSize: Long
Link copied to clipboard
abstract val key: Message.Key<MiraiAudio>
Link copied to clipboard
abstract val originalAudio: Audio

Mirai的原生 OriginalMiraiAudio 对象实例。

Link copied to clipboard

Extensions

Link copied to clipboard
suspend fun Message.toOriginalMiraiMessage(contact: Contact, isDropAction: Boolean = false): Message

将一个 Message 转化为 OriginalMiraiMessage 以发送。

Link copied to clipboard
suspend fun Message.toOriginalMiraiMessageChain(contact: Contact, isDropAction: Boolean = false): MessageChain