File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def onboarding_message(payload):
117117 user_id = event.get(" user" , {}).get(" id" )
118118
119119 # Open a DM with the new user.
120- response = slack_web_client.im_open( user_id)
120+ response = slack_web_client.conversations_open( users = user_id)
121121 channel = response[" channel" ][" id" ]
122122
123123 # Post the onboarding message.
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def onboarding_message(payload):
5252 user_id = event .get ("user" , {}).get ("id" )
5353
5454 # Open a DM with the new user.
55- response = slack_web_client .im_open ( user = user_id )
55+ response = slack_web_client .conversations_open ( users = user_id )
5656 channel = response ["channel" ]["id" ]
5757
5858 # Post the onboarding message.
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ async def onboarding_message(**payload):
5252 user_id = payload ["data" ]["user" ]["id" ]
5353
5454 # Open a DM with the new user.
55- response = web_client .im_open ( user_id )
55+ response = web_client .conversations_open ( users = user_id )
5656 channel = response ["channel" ]["id" ]
5757
5858 # Post the onboarding message.
You can’t perform that action at this time.
0 commit comments