Current section
Files
Jump to
Current section
Files
priv/docs/methods/channels.setTopic.json
{
"args": {
"channel": {
"desc": "Channel to set the topic of",
"required": true,
"type": "channel"
},
"topic": {
"desc": "The new topic",
"example": "My Topic",
"required": true
}
},
"desc": "Sets the topic for a channel.",
"errors": {
"channel_not_found": "Value passed for `channel` was invalid.",
"is_archived": "Channel has been archived.",
"not_in_channel": "Authenticated user is not in the channel.",
"too_long": "Topic was longer than 250 characters.",
"user_is_restricted": "Setting the topic is a restricted action."
}
}