Invite a user to a channel
Schema.slack.functions.InviteUserToChannel
slack#/functions/invite_user_to_channel
This function allows your workflow to add users to a channel. It only works with channels your workflow created.
You can provide the usergroup_ids
or user_ids
parameters.
const inviteUserToChannelStep = ExampleWorkflow.addStep(
Schema.slack.functions.InviteUserToChannel,
{
channel_ids: ["C082T4F6S1N"],
user_ids: ["U0R36M8T62", "U0J46F228L0"],
},
);