# Namespace: privacylist

## QB.chat. privacylist

### Methods

#### staticQB.chat.privacylist.create(list, callback)

modules/chat/qbChat.js, line 2090
  Create a privacy list(read more).

  Name | Type | Description
  --- | --- | ---
  `list` | Object | Privacy list object.
  `callback` | createPrivacylistCallback | The callback function.

#### staticQB.chat.privacylist.delete(name, callback)

modules/chat/qbChat.js, line 2462
  Delete privacy list(read more).

  Name | Type | Description
  --- | --- | ---
  `name` | String | The name of privacy list.
  `callback` | deletePrivacylistCallback | The callback function.

#### staticQB.chat.privacylist.getList(name, callback)

modules/chat/qbChat.js, line 2246
  Get the privacy list(read more).

  Name | Type | Description
  --- | --- | ---
  `name` | String | The name of the list.
  `callback` | getListPrivacylistCallback | The callback function.

#### staticQB.chat.privacylist.getNames(callback)

modules/chat/qbChat.js, line 2368
  Get names of privacy lists(read more). Run without parameters

  Name | Type | Description
  --- | --- | ---
  `callback` | getNamesPrivacylistCallback | The callback function.

#### staticQB.chat.privacylist.setAsDefault(name, callback)

modules/chat/qbChat.js, line 2522
  Set as default privacy list(read more).

  Name | Type | Description
  --- | --- | ---
  `name` | String | The name of privacy list.
  `callback` | setAsDefaultPrivacylistCallback | The callback function.

#### staticQB.chat.privacylist.update(name, callback)

modules/chat/qbChat.js, line 2333
  Update the privacy list(read more).

  Name | Type | Description
  --- | --- | ---
  `name` | String | The name of the list.
  `callback` | updatePrivacylistCallback | The callback function.