mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 16:40:43 +08:00
Add OfflineAnnouncement.serializer
This commit is contained in:
parent
b319e2bc5c
commit
1abfcf4317
@ -31,6 +31,9 @@ public sealed interface OfflineAnnouncement : Announcement {
|
||||
public companion object {
|
||||
public const val SERIAL_NAME: String = "OfflineAnnouncement"
|
||||
|
||||
@JvmStatic
|
||||
public fun serializer(): KSerializer<OfflineAnnouncement> = Serializer
|
||||
|
||||
/**
|
||||
* 创建 [OfflineAnnouncement]. 若 [announcement] 类型为 [OfflineAnnouncement] 则直接返回 [announcement].
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user