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