mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-22 01:30:41 +08:00
Make RichMessage
ConstrainSingle
This commit is contained in:
parent
3ae783afa5
commit
b1dcc59e21
@ -28,7 +28,8 @@ import kotlin.annotation.AnnotationTarget.*
|
|||||||
*/
|
*/
|
||||||
// not using sealed class for customized implementations
|
// not using sealed class for customized implementations
|
||||||
// using polymorphic serializer from Message.Serializer
|
// using polymorphic serializer from Message.Serializer
|
||||||
public interface RichMessage : MessageContent {
|
public interface RichMessage : MessageContent, ConstrainSingle {
|
||||||
|
override val key: MessageKey<*> get() = Key
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* **注意**: 富文本消息的 [RichMessage.contentEquals] 和 [RichMessage.toString] 都不稳定. 将来可能在没有任何警告的情况下改变格式.
|
* **注意**: 富文本消息的 [RichMessage.contentEquals] 和 [RichMessage.toString] 都不稳定. 将来可能在没有任何警告的情况下改变格式.
|
||||||
|
Loading…
Reference in New Issue
Block a user