TestMessageEvent
open class TestMessageEvent(var id: ID = UUID.random(), var bot: Bot = TestBot(), var authorId: ID = UUID.random(), var messageContent: MessageContent = TestMessageContent(), var onReplyText: (String) -> TestMessageReceipt = { TestMessageReceipt() }, var onReplyMessage: (Message) -> TestMessageReceipt = { TestMessageReceipt() }, var onReplyMessageContent: (MessageContent) -> TestMessageReceipt = { TestMessageReceipt() }) : MessageEvent, BaseTestEvent(source)
用于测试的 MessageEvent 实现
Constructors
Link copied to clipboard
constructor(id: ID = UUID.random(), bot: Bot = TestBot(), authorId: ID = UUID.random(), messageContent: MessageContent = TestMessageContent(), onReplyText: (String) -> TestMessageReceipt = { TestMessageReceipt() }, onReplyMessage: (Message) -> TestMessageReceipt = { TestMessageReceipt() }, onReplyMessageContent: (MessageContent) -> TestMessageReceipt = { TestMessageReceipt() })