AbstractCommandSender

sealed class AbstractCommandSender : CommandSender, CoroutineScope

所有 CommandSender 都必须继承自此对象.

See also

Functions

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

立刻发送一条消息.

Link copied to clipboard
abstract override fun toString(): String

Properties

Link copied to clipboard
abstract override val bot: Bot?

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

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

与这个 CommandSender 相关的 Contact.

Link copied to clipboard
abstract override val user: User?

指令原始发送.

Inheritors

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