@@ -5417,6 +5417,72 @@ def views_publish(
54175417 # NOTE: Intentionally using json for the "view" parameter
54185418 return self .api_call ("views.publish" , json = kwargs )
54195419
5420+ def workflows_featured_add (
5421+ self ,
5422+ * ,
5423+ channel_id : str ,
5424+ trigger_ids : Union [str , Sequence [str ]],
5425+ ** kwargs ,
5426+ ) -> Union [Future , SlackResponse ]:
5427+ """Add featured workflows to a channel.
5428+ https://api.slack.com/methods/workflows.featured.add
5429+ """
5430+ kwargs .update ({"channel_id" : channel_id })
5431+ if isinstance (trigger_ids , (list , tuple )):
5432+ kwargs .update ({"trigger_ids" : "," .join (trigger_ids )})
5433+ else :
5434+ kwargs .update ({"trigger_ids" : trigger_ids })
5435+ return self .api_call ("workflows.featured.add" , params = kwargs )
5436+
5437+ def workflows_featured_list (
5438+ self ,
5439+ * ,
5440+ channel_ids : Union [str , Sequence [str ]],
5441+ ** kwargs ,
5442+ ) -> Union [Future , SlackResponse ]:
5443+ """List the featured workflows for specified channels.
5444+ https://api.slack.com/methods/workflows.featured.list
5445+ """
5446+ if isinstance (channel_ids , (list , tuple )):
5447+ kwargs .update ({"channel_ids" : "," .join (channel_ids )})
5448+ else :
5449+ kwargs .update ({"channel_ids" : channel_ids })
5450+ return self .api_call ("workflows.featured.list" , params = kwargs )
5451+
5452+ def workflows_featured_remove (
5453+ self ,
5454+ * ,
5455+ channel_id : str ,
5456+ trigger_ids : Union [str , Sequence [str ]],
5457+ ** kwargs ,
5458+ ) -> Union [Future , SlackResponse ]:
5459+ """Remove featured workflows from a channel.
5460+ https://api.slack.com/methods/workflows.featured.remove
5461+ """
5462+ kwargs .update ({"channel_id" : channel_id })
5463+ if isinstance (trigger_ids , (list , tuple )):
5464+ kwargs .update ({"trigger_ids" : "," .join (trigger_ids )})
5465+ else :
5466+ kwargs .update ({"trigger_ids" : trigger_ids })
5467+ return self .api_call ("workflows.featured.remove" , params = kwargs )
5468+
5469+ def workflows_featured_set (
5470+ self ,
5471+ * ,
5472+ channel_id : str ,
5473+ trigger_ids : Union [str , Sequence [str ]],
5474+ ** kwargs ,
5475+ ) -> Union [Future , SlackResponse ]:
5476+ """Set featured workflows for a channel.
5477+ https://api.slack.com/methods/workflows.featured.set
5478+ """
5479+ kwargs .update ({"channel_id" : channel_id })
5480+ if isinstance (trigger_ids , (list , tuple )):
5481+ kwargs .update ({"trigger_ids" : "," .join (trigger_ids )})
5482+ else :
5483+ kwargs .update ({"trigger_ids" : trigger_ids })
5484+ return self .api_call ("workflows.featured.set" , params = kwargs )
5485+
54205486 def workflows_stepCompleted (
54215487 self ,
54225488 * ,
0 commit comments