public static class AppSlashCommand.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
AppSlashCommand |
build() |
AppSlashCommand.Builder |
command(String command)
用户在聊天窗口输入的触发指令,需以 `/` 开头,支持英文、数字和下划线,不可与已存在的命令重复。
|
AppSlashCommand.Builder |
commandId(String commandId)
斜杠命令的唯一标识,系统自动生成。
|
AppSlashCommand.Builder |
createTime(String createTime)
命令的创建时间,Unix 时间戳(毫秒),由系统自动生成,不可修改。
|
AppSlashCommand.Builder |
description(AppSlashCommandI18nText description)
app slash command的说明的国际化文案
示例值:
|
AppSlashCommand.Builder |
updateTime(String updateTime)
命令的最后更新时间,Unix 时间戳(毫秒),命令内容修改时自动更新,不可手动设置。
|
public AppSlashCommand.Builder commandId(String commandId)
示例值:cmd_7894561230
commandId - public AppSlashCommand.Builder command(String command)
示例值:/check_attendance
command - public AppSlashCommand.Builder description(AppSlashCommandI18nText description)
示例值:
description - public AppSlashCommand.Builder createTime(String createTime)
示例值:1698729600000
createTime - public AppSlashCommand.Builder updateTime(String updateTime)
示例值:1699334400000
updateTime - public AppSlashCommand build()
Copyright © 2026. All rights reserved.