group_visibility

Controls group visibility in the bot’s profile.

// See "LSL Helper Functions" page for this function
smartbotsAPI("group_visibility", [
  "groupuuid", "0b65a122-8f77-64fe-5b2a-225d4c490d9c",
  "profile", 0
]);

Variables

The following table shows input values (you send them with the API call) and returned output values.

Input basic parameters

Variable

Required

Description

action

yes

= group_visibility

apikey

yes

Your personal developer's API key

botname

yes

Your bot's SL login

secret

yes

Bot access code of your bot

dataType

optional

Set to "json" to get JSON reply instead of URL-encoded string

custom

optional

The custom data (string) to be passed back to caller script. This value will be returned back to the caller in HTTP response

Input

Variable

Required

Description

groupuuid

yes

The group UUID

profile

yes

Set to 1 to show the group in the bot’s profile, 0 to hide it

notices

optional

Controls whether the bot receives notices from the group.
Use"accept" to receive notices, "reject"to stop receiving notices.
Note: Theprofile parameter must always be set.

Output

(To be received in *http_response* LSL event, see docs for details)

Variable

Description

result

OK - command completed successfully
FAIL - command failed

resulttext

Detailed reason for the failure

custom

The value from input "custom" parameter. See above

Details

Use this command to show or hide a group in the bot’s public profile.
The result of this operation is applied immediately.

The command can also control whether the bot receives notices from the specified group.
If notices="reject" is used, the bot stops receiving notices from that group.