mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-16 09:00:32 +00:00
bots: document that CreateActiveUser can return a non-active profile
The generated docs still said "Create new user profile." with response "ActiveUser: Active user profile", which is no longer true when keepActiveUser is set. The record generator has no per-field description slot, so the command description is the only place a bot author can learn this.
This commit is contained in:
@@ -178,7 +178,7 @@ chatCommandsDocsData =
|
||||
[ ("ShowActiveUser", [], "Get active user profile.", ["CRActiveUser", "CRChatCmdError"], [], Nothing, "/user"),
|
||||
( "CreateActiveUser",
|
||||
[],
|
||||
"Create new user profile.",
|
||||
"Create new user profile. The new profile becomes the active one, unless keepActiveUser is set - in that case the current profile stays active. The response carries the created profile either way, so with keepActiveUser it is not the active profile.",
|
||||
["CRActiveUser", "CRChatCmdError"],
|
||||
[TD "CEUserExists" "User or contact with this name already exists", TD "CEInvalidDisplayName" "Invalid user display name"],
|
||||
Nothing,
|
||||
|
||||
Reference in New Issue
Block a user