Skip to content

Commit 9f6e3ce

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

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
@@ -4496,6 +4496,32 @@ def emoji_list(
44964496
kwargs.update({"include_categories": include_categories})
44974497
return self.api_call("emoji.list", http_verb="GET", params=kwargs)
44984498

4499+
def entity_acknowledgeCommentAction(
4500+
self,
4501+
*,
4502+
trigger_id: str,
4503+
comment: Optional[Dict[str, Any]] = None,
4504+
error: Optional[str] = None,
4505+
**kwargs,
4506+
) -> SlackResponse:
4507+
"""Acknowledge a comment post, edit, or delete on a Work Object.
4508+
4509+
Apps call this method to confirm they have processed a comment action.
4510+
https://docs.slack.dev/reference/methods/entity.acknowledgeCommentAction
4511+
4512+
Args:
4513+
trigger_id: A reference to the original user action that initiated the comment mutation
4514+
comment: The full comment data. Required for edit and post actions.
4515+
error: Error message if the action failed in the app. When present, signals that the mutation could not be
4516+
completed.
4517+
"""
4518+
kwargs.update({"trigger_id": trigger_id})
4519+
if comment is not None:
4520+
kwargs.update({"comment": comment})
4521+
if error is not None:
4522+
kwargs.update({"error": error})
4523+
return self.api_call("entity.acknowledgeCommentAction", json=kwargs)
4524+
44994525
def entity_presentDetails(
45004526
self,
45014527
trigger_id: str,

‎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)