Skip to content

Commit 5d64c6c

Browse files
authored
Merge pull request #1029 from simple-robot/fix-internal-event-implementations
为 `InternalMessagePostSendEvent` 追加实现 `InternalNotificationEvent`;修复部分文档内容
2 parents 958605f + 727dd22 commit 5d64c6c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

simbot-api/api/simbot-api.api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ public abstract interface class love/forte/simbot/event/InternalMessageInteracti
16271627
public abstract fun getMessage ()Llove/forte/simbot/event/InteractionMessage;
16281628
}
16291629

1630-
public abstract interface class love/forte/simbot/event/InternalMessagePostSendEvent : love/forte/simbot/event/InternalMessageInteractionEvent {
1630+
public abstract interface class love/forte/simbot/event/InternalMessagePostSendEvent : love/forte/simbot/event/InternalMessageInteractionEvent, love/forte/simbot/event/InternalNotificationEvent {
16311631
public abstract fun getMessage ()Llove/forte/simbot/event/InteractionMessage;
16321632
public abstract fun getReceipt ()Llove/forte/simbot/message/MessageReceipt;
16331633
}

simbot-api/src/commonMain/kotlin/love/forte/simbot/event/InternalMessageInteractionEvent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public interface InternalMessagePreSendEvent :
100100
* @since 4.11.0
101101
*/
102102
@SubclassOptInRequired(FuzzyEventTypeImplementation::class)
103-
public interface InternalMessagePostSendEvent : InternalMessageInteractionEvent {
103+
public interface InternalMessagePostSendEvent : InternalNotificationEvent, InternalMessageInteractionEvent {
104104
/**
105105
* 在消息发送时
106106
* (例如 [SendSupport.send] 或 [ReplySupport.reply] )

simbot-api/src/commonMain/kotlin/love/forte/simbot/event/SendSupportInteractionEvent.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public interface ContactInteractionEvent : SendSupportInteractionEvent {
8383
}
8484

8585
/**
86-
* 针对 [Member.send] 的内部交互事件, 在 [Member.send] 执行前拦截。
86+
* 针对 [Contact.send] 的内部交互事件, 在 [Contact.send] 执行前拦截。
8787
* @see Contact
8888
* @since 4.11.0
8989
*/
@@ -93,7 +93,7 @@ public interface ContactPreSendEvent : ContactInteractionEvent, SendSupportPreSe
9393
}
9494

9595
/**
96-
* 针对 [Member.send] 的内部交互事件, 在 [Member.send] 执行后通知。
96+
* 针对 [Contact.send] 的内部交互事件, 在 [Contact.send] 执行后通知。
9797
* @see Contact
9898
* @since 4.11.0
9999
*/

0 commit comments

Comments
 (0)