1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-03-30 09:50:12 +08:00

[mock] Suppress deprecation error for GroupEntranceAnnouncementChangeEvent in MockAnnouncementsImpl.mockPublish.

This commit fixes 7908edb57b
This commit is contained in:
Him188 2022-12-27 17:44:00 +00:00
parent 0a7df909ca
commit bc6032f2e4
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375

View File

@ -71,7 +71,7 @@ internal class MockAnnouncementsImpl(
putDirect(ann)
if (!events) return ann
@Suppress("DEPRECATION")
@Suppress("DEPRECATION", "DEPRECATION_ERROR")
net.mamoe.mirai.event.events.GroupEntranceAnnouncementChangeEvent(
origin = old?.content.orEmpty(),
new = ann.content,