List channels where a user is muted
Retrieves a list of open and group channels where a user is muted. The response contains information about the channels, such as channel_url
and custom_type
.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Parameters
Required | Type | Description |
---|---|---|
user_id | string | Specifies the unique ID of the muted user. |
Optional | Type | Description |
---|---|---|
token | string | Specifies a page token that indicates the starting index of results to retrieve. If not specified, the index is set to 0. |
limit | int | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) |
Response
If successful, this action returns a list of muted channel resources in the response body.
List of response properties
Property name | Type | Description |
---|---|---|
muted_channels[] | array of objects | An array of |
(muted_channels).remaining_duration | long | The time left in Unix milliseconds until the user becomes unmuted or the time specified in |
(muted_channels).end_at | long | The time in Unix milliseconds when the user becomes unmuted in the channel. A value of -1 indicates that the mute is permanent. (Default: -1) |
(muted_channels).description | string | The reason for mute. |
(muted_channels).name | string | The topic or name of the channel. |
(muted_channels).custom_type | string | The custom channel type of the channel. |
(muted_channels).channel_url | string | The URL of the channel. |
(muted_channels).created_at | long | The time when the channel was created. The value is in Unix milliseconds format. |
(muted_channels).cover_url | string | The URL of the cover image of the muted channel. |
(muted_channels).data | string | Additional data of the muted channel. |
next | string | The value that can be used in the |
In the case of an error, an error object is returned. A detailed list of error codes is available here.