OtherClientCommandSenderOnMessage
class OtherClientCommandSenderOnMessage : OtherClientCommandSender, CommandSenderOnMessage<OtherClientMessageEvent>
代表一个 其他客户端 主动在私聊发送消息执行指令
See also
代表一个 其他客户端 执行指令, 但不一定是通过私聊方式
Functions
Link copied to clipboard
suspend fun CommandSender.add(account: Long, password: String, passwordKind: AutoLoginConfig.Account.PasswordKind = PLAIN)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun CommandSender.executeCommand(message: String, checkPermission: Boolean = true): CommandExecuteResult
解析并执行一个指令
Link copied to clipboard
inline fun <R> CommandSender.fold(ifIsSystem: SystemCommandSender.() -> R, ifIsUser: UserCommandSender.() -> R, otherwise: CommandSender.() -> R = { error("CommandSender ${this::class.qualifiedName} is not supported") }): R
折叠 CommandSender 的可能性.
Link copied to clipboard
尝试获取 Bot.
Link copied to clipboard
尝试获取 Group.
Link copied to clipboard
Link copied to clipboard
suspend fun CommandSender.handle(id: Long, password: String? = null, protocol: BotConfiguration.MiraiProtocol? = null)
Link copied to clipboard
Link copied to clipboard
当 this 为 ConsoleCommandSender 时返回 true
Link copied to clipboard
当 this 不为 ConsoleCommandSender 时返回 true
Link copied to clipboard
当 this 不为 UserCommandSender, 即为 SystemCommandSender 时返回 true
Link copied to clipboard
当 this 为 SystemCommandSender 时返回 true
Link copied to clipboard
当 this 为 UserCommandSender 时返回 true
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun CommandSender.removeConfig(account: Long, configKey: AutoLoginConfig.Account.ConfigurationKey)
Link copied to clipboard
inline fun <R> CommandSender?.scopeWith(vararg others: CommandSender?, action: MessageScope.() -> R): R
inline fun <R> CommandSender?.scopeWith(vararg others: MessageScope?, action: MessageScope.() -> R): R
Link copied to clipboard
inline suspend fun CommandSender.sendAnsiMessage(capacity: Int = 16, builder: AnsiMessageBuilder.() -> Unit): MessageReceipt<Contact>?
向 CommandSender 发送一条带有 ANSI 控制符的信息
Link copied to clipboard
立刻发送一条消息.
Link copied to clipboard
suspend fun CommandSender.setConfig(account: Long, configKey: AutoLoginConfig.Account.ConfigurationKey, value: String)
Properties
Link copied to clipboard
与这个 CommandSender 相关的 Bot. 当通过控制台执行时为 null
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
消息源 MessageEvent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
与这个 CommandSender 相关的 Contact.