支持渠道、指令(自定义前缀)和事件(启用/禁用)管理

This commit is contained in:
xintaofei
2026-03-31 11:49:24 +08:00
parent 54bab306e1
commit edc12a0e39
24 changed files with 1777 additions and 330 deletions

View File

@@ -1402,3 +1402,21 @@ export async function listChatChannelMessages(params: {
offset: params.offset ?? null,
})
}
export async function getChatCommandPrefix(): Promise<string> {
return getTransport().call("get_chat_command_prefix")
}
export async function setChatCommandPrefix(prefix: string): Promise<void> {
return getTransport().call("set_chat_command_prefix", { prefix })
}
export async function getChatEventFilter(): Promise<string[] | null> {
return getTransport().call("get_chat_event_filter")
}
export async function setChatEventFilter(
filter: string[] | null,
): Promise<void> {
return getTransport().call("set_chat_event_filter", { filter })
}