Skip to main content

lib/slack/web/docs/groups.setTopic.json

{
	"desc": "Sets the topic for a private channel.",

	"args": {
		"channel": {
			"type"		: "channel",
			"required"	: true,
			"desc"		: "Private channel to set the topic of"
		},
		"topic": {
			"required"	: true,
			"example"	: "My Topic",
			"desc"		: "The new topic"
		}
	},

	"errors": {
		"channel_not_found"	: "Value passed for `channel` was invalid.",
		"is_archived": "Private group has been archived",
		"too_long": "Topic was longer than 250 characters.",
		"user_is_restricted" : "Setting the topic is a restricted action."
	}
}