Skip to content

getUserPrivacySettingRules

Sahri Riza Umami edited this page Jun 24, 2018 · 1 revision

Returns the current privacy settings.

getUserPrivacySettingRules(setting, callback, data)
Field Type Description
setting string The privacy setting: ShowStatus, AllowChatInvites or AllowCalls.

Example

  • Get the current privacy settings for whether the user can be called.

    getUserPrivacySettingRules('AllowCalls')

    Response:

    {
      ["@type"] = "userPrivacySettingRules",
      rules = {
        {
          ["@type"] = "userPrivacySettingRuleAllowAll"
        }
      }
    }

Frequently Asked Questions
The Functions

Clone this wiki locally