Skip to main content

lib/slack/web/docs/channels.rename.json

{
	"desc": "Renames a channel.",

	"args": {
		"channel": {
			"type"		: "channel",
			"required"	: true,
			"desc"		: "Channel to rename"
		},

		"name": {
			"required"	: true,
			"desc"		: "New name for channel."
		}
	},

	"errors": {

		"channel_not_found"	: "Value passed for `channel` was invalid.",
		"not_in_channel"	: "Caller is not a member of the channel.",
		"not_authorized"	: "Caller cannot rename this channel",
		"invalid_name"		: "New name is invalid",
		"name_taken"		: "New channel name is taken"
	}
}