MiraiGroupMessageEvent

See also

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend override fun author(): MiraiMember

此消息的发送者。

Link copied to clipboard
abstract suspend override fun group(): MiraiGroup

收到消息的群。

Link copied to clipboard
open suspend override fun organization(): MiraiGroup

收到消息的群。同 group.

Link copied to clipboard
abstract suspend fun recall(): Boolean

删除,或者说撤回这个消息。

Link copied to clipboard
abstract suspend override fun reply(text: String): SimbotMiraiMessageReceipt<Group>
abstract suspend override fun reply(message: Message): SimbotMiraiMessageReceipt<Group>
abstract suspend override fun reply(message: MessageContent): SimbotMiraiMessageReceipt<Group>

在当前群内引用回复发消息的人。会在消息开头拼接一个 QuoteReply。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend override fun send(text: String): SimbotMiraiMessageReceipt<Group>
abstract suspend override fun send(message: Message): SimbotMiraiMessageReceipt<Group>
abstract suspend override fun send(message: MessageContent): SimbotMiraiMessageReceipt<Group>

向此事件的群发送消息。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun source(): MiraiGroup

收到消息的群。同 group.

Properties

Link copied to clipboard
open val author: Member
Link copied to clipboard
Link copied to clipboard
abstract override val bot: MiraiBot

事件中的bot对象。

Link copied to clipboard
open override val component: Component
Link copied to clipboard
open override val group: Group
Link copied to clipboard
open override val groupAsync: CompletableFuture<out Group>
Link copied to clipboard
abstract override val id: ID

事件的唯一标识。 Mirai事件中并不一定存在id,当原始事件中没有ID的情况下,将会生成一个随机ID。

Link copied to clipboard
Link copied to clipboard

收到的消息本体。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract override val originalEvent: GroupMessageEvent

原始的mirai事件对象

Link copied to clipboard
open override val source: ChatRoom
Link copied to clipboard
open override val sourceAsync: CompletableFuture<out ChatRoom>
Link copied to clipboard
abstract val timestamp: Timestamp