Slack.Web.Conversations.open
You're seeing just the function
open
, go back to Slack.Web.Conversations module for more information.
Opens a multi-person direct message or just a 1:1 direct message.
Optional Params
channel
- Resume a conversation by supplying anim
ormpim
's ID. Or provide theusers
field instead. ex:G1234567890
return_im
- Boolean, indicates you want the full IM channel definition in the response. ex:true
users
- Comma separated lists of users. If only one user is included, this creates a 1:1 DM. The ordering of the users is preserved whenever a multi-person direct message is returned. Supply achannel
when not supplyingusers
. ex:W1234567890,U2345678901,U3456789012
Errors the API can return:
channel_not_found
- Value passed forchannel
was invalidmethod_not_supported_for_channel_type
- This type of conversation cannot be used with this method.not_enough_users
- Needs at least 2 users to opentoo_many_users
- Needs at most 8 users to openuser_disabled
- A specifieduser
has been disableduser_not_found
- Value(s) passed forusers
was invaliduser_not_visible
- The calling user is restricted from seeing the requested user.users_list_not_supplied
- Missingusers
in request