Skip to content

Commit b3bd01b

Browse files
author
Horea Porutiu
authored
adding team parameter which is needed for grid instances (#13)
1 parent ad23842 commit b3bd01b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

slack_discovery_sdk/examples/DLP_call_pattern.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@
4343
# Step 3 - check each message and see if it contains a credit card number. If it does, tombstone the message.
4444
# A valid credit card for our logic is something like the following: '5122-2368-7954-3214'
4545
# Please note this is just example logic, to help you understand how to use the Discovery APIs.
46-
4746
if is_credit_card_number(message["text"]):
4847
client.discovery_chat_tombstone(
49-
ts=message["ts"],
50-
channel=conversation["id"],
48+
ts=message["ts"], channel=conversation["id"], team=message["team"]
5149
)

0 commit comments

Comments
 (0)