CommandSenderOnMessage

interface CommandSenderOnMessage<T : MessageEvent> : CommandSender

代表一个真实 用户 主动私聊机器人或在群内发送消息而执行指令

See also

代表一个真实的 群员 主动在群内发送消息执行指令.

代表一个真实的 好友 主动在私聊消息执行指令

代表一个 群员 主动在临时会话发送消息执行指令

Functions

Link copied to clipboard
abstract suspend fun sendMessage(message: String): MessageReceipt<Contact>?
abstract suspend fun sendMessage(message: Message): MessageReceipt<Contact>?

立刻发送一条消息.

Properties

Link copied to clipboard
abstract val bot: Bot?

与这个 CommandSender 相关的 Bot. 当通过控制台执行时为 null.

Link copied to clipboard
abstract val coroutineContext: CoroutineContext
Link copied to clipboard
abstract val fromEvent: T

消息源 MessageEvent

Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val permitteeId: PermitteeId
Link copied to clipboard
abstract val subject: Contact?

与这个 CommandSender 相关的 Contact.

Link copied to clipboard
abstract val user: User?

指令原始发送.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard