@slack/client
Version:
A library for creating a Slack client
20 lines (15 loc) • 543 B
Markdown
layout: page
title: PresenceFacet
permalink: /reference/PresenceFacet
**Kind**: global class
<a name="PresenceFacet+set"></a>
### presenceFacet.set(presence, [optCb])
Manually set user presence
**Kind**: instance method of <code>[PresenceFacet](#PresenceFacet)</code>
**See**: [presence.set](https://api.slack.com/methods/presence.set)
| Param | Type | Description |
| --- | --- | --- |
| presence | <code>?</code> | Either `active` or `away` |
| [optCb] | <code>function</code> | Optional callback, if not using promises. |