mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-09 03:20:11 +08:00
Implement FriendEvent
This commit is contained in:
parent
8366c353c4
commit
752ec5b83c
@ -652,9 +652,9 @@ data class MemberUnmuteEvent(
|
|||||||
@SinceMirai("0.36.0")
|
@SinceMirai("0.36.0")
|
||||||
data class FriendRemarkChangeEvent(
|
data class FriendRemarkChangeEvent(
|
||||||
override val bot: Bot,
|
override val bot: Bot,
|
||||||
val friend: Friend,
|
override val friend: Friend,
|
||||||
val newName: String
|
val newName: String
|
||||||
) : BotEvent, Packet, AbstractEvent()
|
) : FriendEvent, Packet, AbstractEvent()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 成功添加了一个新好友的事件
|
* 成功添加了一个新好友的事件
|
||||||
@ -664,8 +664,8 @@ data class FriendAddEvent(
|
|||||||
/**
|
/**
|
||||||
* 新好友. 已经添加到 [Bot.friends]
|
* 新好友. 已经添加到 [Bot.friends]
|
||||||
*/
|
*/
|
||||||
val friend: Friend
|
override val friend: Friend
|
||||||
) : BotEvent, Packet, AbstractEvent() {
|
) : FriendEvent, Packet, AbstractEvent() {
|
||||||
override val bot: Bot get() = friend.bot
|
override val bot: Bot get() = friend.bot
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -674,8 +674,8 @@ data class FriendAddEvent(
|
|||||||
*/
|
*/
|
||||||
@SinceMirai("0.36.0")
|
@SinceMirai("0.36.0")
|
||||||
data class FriendDeleteEvent(
|
data class FriendDeleteEvent(
|
||||||
val friend: Friend
|
override val friend: Friend
|
||||||
) : BotEvent, Packet, AbstractEvent() {
|
) : FriendEvent, Packet, AbstractEvent() {
|
||||||
override val bot: Bot get() = friend.bot
|
override val bot: Bot get() = friend.bot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user