@@ -29,14 +29,14 @@ public class SaltifyCommandContext internal constructor() {
2929 internal var failureBlock: (suspend SaltifyCommandExecutionContext .(CommandError ) -> Unit )? = null
3030
3131 /* *
32- * 注册一个子命令 。
32+ * 注册一个子指令 。
3333 */
3434 public fun subCommand (name : String , block : SaltifyCommandContext .() -> Unit ) {
3535 subCommands.add(name to SaltifyCommandContext ().apply (block))
3636 }
3737
3838 /* *
39- * 定义一个命令参数 。请搭配 [SaltifyCommandExecutionContext.capture] 使用。
39+ * 定义一个指令参数 。请搭配 [SaltifyCommandExecutionContext.capture] 使用。
4040 */
4141 public fun <T : Any > parameter (
4242 type : KClass <T >,
@@ -57,7 +57,7 @@ public class SaltifyCommandContext internal constructor() {
5757 }
5858
5959 /* *
60- * 设置通用的命令执行逻辑 。
60+ * 设置通用的指令执行逻辑 。
6161 */
6262 public fun onExecute (block : suspend SaltifyCommandExecutionContext .() -> Unit ) {
6363 executionBlock = block
@@ -78,7 +78,7 @@ public class SaltifyCommandContext internal constructor() {
7878 }
7979
8080 /* *
81- * 当命令 **解析**失败时执行的逻辑。
81+ * 当指令 **解析**失败时执行的逻辑。
8282 */
8383 public fun onFailure (block : suspend SaltifyCommandExecutionContext .(CommandError ) -> Unit ) {
8484 failureBlock = block
@@ -109,14 +109,14 @@ public class SaltifyCommandExecutionContext(
109109 get() = capture(this )
110110
111111 /* *
112- * 响应命令 。
112+ * 响应指令 。
113113 */
114114 public suspend fun respond (
115115 block : MutableList <OutgoingSegment >.() -> Unit
116116 ): SendMessageOutput = event.respond(client, block)
117117
118118 /* *
119- * 响应命令 ,并在指定延迟后撤回消息。
119+ * 响应指令 ,并在指定延迟后撤回消息。
120120 */
121121 @ContextParametersMigrationNeeded
122122 public suspend inline fun respondWithRecall (
@@ -132,7 +132,7 @@ public class SaltifyCommandExecutionContext(
132132 }
133133
134134 /* *
135- * 获取由命令触发者发送的下一条消息事件 。超时返回 null。
135+ * 获取由指令触发者发送的下一条消息事件 。超时返回 null。
136136 */
137137 public suspend fun awaitNextMessage (timeout : Duration = 30.seconds): Event .MessageReceive ? {
138138 val messageFlow = client.eventFlow.filterIsInstance<Event .MessageReceive >()
@@ -155,7 +155,7 @@ public class SaltifyCommandExecutionContext(
155155}
156156
157157/* *
158- * 命令参数
158+ * 指令参数
159159 */
160160public class SaltifyCommandParamDef <T : Any >(
161161 public val type : KClass <T >,
0 commit comments