1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-02 23:27:50 +02:00

43 lines
661 B
Plaintext
Raw Normal View History

2024-10-15 10:16:04 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
---
sidebar_position: 4
---
# Archive channel
Archives an active channel
`Function ArchiveChannel(Val Token, Val Channel) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Bot token |
| Channel | --channel | String | Channel ID |
Returns: Map Of KeyAndValue - serialized JSON response from Slack
<br/>
```bsl title="Code example"
Token = "xoxb-6965308400114-696804637...";
Channel = "C07R7MSSPDM";
Result = OPI_Slack.ArchiveChannel(Token, Channel);
```
```json title="Result"
{
"ok": true
}
```