mirror of
https://github.com/mamoe/mirai.git
synced 2026-08-22 22:23:32 +08:00
Fix #315
This commit is contained in:
@@ -516,7 +516,7 @@ internal object Transformers528 : Map<Long, Lambda528> by mapOf(
|
||||
|
||||
fun ModCustomFace.transform(bot: QQAndroidBot): Sequence<Packet> {
|
||||
if (uin == bot.id) {
|
||||
return sequenceOf(BotFaceChangedEvent(bot))
|
||||
return sequenceOf(BotAvatarChangedEvent(bot))
|
||||
}
|
||||
val friend = bot.getFriendOrNull(uin) ?: return emptySequence()
|
||||
return sequenceOf(FriendFaceChangedEvent(friend))
|
||||
|
||||
@@ -93,14 +93,14 @@ data class BotReloginEvent internal constructor(
|
||||
/**
|
||||
* [Bot] 头像被修改(通过其他客户端修改了Bot的头像)
|
||||
*/
|
||||
data class BotFaceChangedEvent(
|
||||
data class BotAvatarChangedEvent(
|
||||
override val bot: Bot
|
||||
) : BotEvent, Packet, AbstractEvent()
|
||||
|
||||
/**
|
||||
* [Friend] 头像被修改
|
||||
*/
|
||||
data class FriendFaceChangedEvent(
|
||||
data class FriendAvatarChangedEvent(
|
||||
override val friend: Friend
|
||||
) : FriendEvent, Packet, AbstractEvent()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user