Slack Developer Kit for Node.js
Go to GitHub

UsersProfileFacet

Kind: global class

usersProfileFacet.get(user, include_labels, [optCb])

This method is used to get the profile information for a user.

Kind: instance method of [UsersProfileFacet](#UsersProfileFacet)
See: users.profile.get

Param Type Description
user ? User to retrieve profile info for
include_labels ? Include labels for each ID in custom profile fields
[optCb] function Optional callback, if not using promises.

usersProfileFacet.set(user, profile, name, value, [optCb])

This method is used to set the profile information for a user.

Kind: instance method of [UsersProfileFacet](#UsersProfileFacet)
See: users.profile.set

Param Type Description
user ? ID of user to change. This argument may only be specified by team admins on paid teams.
profile ? Collection of key:value pairs presented as a URL-encoded JSON hash.
name ? Name of a single key to set. Usable only if profile is not passed.
value ? Value to set a single key to. Usable only if profile is not passed.
[optCb] function Optional callback, if not using promises.