Skip to content

Commit d043daf

Browse files
zimegClaude
andcommitted
feat: add entity.acknowledgeCommentAction method
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent 24b1d74 commit d043daf

4 files changed

Lines changed: 101 additions & 2 deletions

File tree

‎slack_sdk/web/async_client.py‎

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎slack_sdk/web/client.py‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4445,6 +4445,32 @@ 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_acknowledgeCommentAction(
4449+
self,
4450+
*,
4451+
trigger_id: str,
4452+
comment: Optional[Dict[str, Any]] = None,
4453+
error: Optional[str] = None,
4454+
**kwargs,
4455+
) -> SlackResponse:
4456+
"""Acknowledge a comment post, edit, or delete on a Work Object.
4457+
4458+
Apps call this method to confirm they have processed a comment action.
4459+
https://docs.slack.dev/reference/methods/entity.acknowledgeCommentAction
4460+
4461+
Args:
4462+
trigger_id: A reference to the original user action that initiated the comment mutation
4463+
comment: The full comment data. Required for edit and post actions.
4464+
error: Error message if the action failed in the app. When present, signals that the mutation could not be
4465+
completed.
4466+
"""
4467+
kwargs.update({"trigger_id": trigger_id})
4468+
if comment is not None:
4469+
kwargs.update({"comment": comment})
4470+
if error is not None:
4471+
kwargs.update({"error": error})
4472+
return self.api_call("entity.acknowledgeCommentAction", json=kwargs)
4473+
44484474
def entity_presentComments(
44494475
self,
44504476
*,

‎slack_sdk/web/legacy_client.py‎

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)