@@ -4445,6 +4445,48 @@ def emoji_list(
44454445 kwargs .update ({"include_categories" : include_categories })
44464446 return self .api_call ("emoji.list" , http_verb = "GET" , params = kwargs )
44474447
4448+ def entity_presentComments (
4449+ self ,
4450+ * ,
4451+ comments : Sequence [Dict [str , Any ]],
4452+ trigger_id : str ,
4453+ cursor : Optional [str ] = None ,
4454+ can_post_comment : Optional [bool ] = None ,
4455+ delete_action_id : Optional [str ] = None ,
4456+ user_auth_required : Optional [bool ] = None ,
4457+ user_auth_url : Optional [str ] = None ,
4458+ error : Optional [Dict [str , Any ]] = None ,
4459+ ** kwargs ,
4460+ ) -> SlackResponse :
4461+ """Provide comments for Work Objects.
4462+
4463+ Apps call this method to send per-user flexpane comment data to the client.
4464+ https://docs.slack.dev/reference/methods/entity.presentComments
4465+
4466+ Args:
4467+ comments: Array of comments to present to the user.
4468+ trigger_id: A reference to the original user action that initiated the request
4469+ cursor: App supplied cursor used for pagination, will be sent in the next request for comments
4470+ can_post_comment: Indicates whether the user has permissions to post comments
4471+ delete_action_id: The block action id that will be sent when a delete request is initiated for a comment.
4472+ user_auth_required: Set to true (or 1) to indicate that the user must authenticate to see the comments data.
4473+ user_auth_url: A custom URL to which users are directed for authentication if required.
4474+ """
4475+ kwargs .update ({"comments" : comments , "trigger_id" : trigger_id })
4476+ if cursor is not None :
4477+ kwargs .update ({"cursor" : cursor })
4478+ if can_post_comment is not None :
4479+ kwargs .update ({"can_post_comment" : can_post_comment })
4480+ if delete_action_id is not None :
4481+ kwargs .update ({"delete_action_id" : delete_action_id })
4482+ if user_auth_required is not None :
4483+ kwargs .update ({"user_auth_required" : user_auth_required })
4484+ if user_auth_url is not None :
4485+ kwargs .update ({"user_auth_url" : user_auth_url })
4486+ if error is not None :
4487+ kwargs .update ({"error" : error })
4488+ return self .api_call ("entity.presentComments" , json = kwargs )
4489+
44484490 def entity_presentDetails (
44494491 self ,
44504492 trigger_id : str ,
0 commit comments