You're seeing just the function invite, go back to Slack.Web.Channels module for more information.
Link to this function

invite(channel, user, optional_params \\ %{})

View Source

Invites a user to a channel.

Required Params

  • channel - Channel to invite user to.
  • user - User to invite to channel.

Errors the API can return:

  • already_in_channel - Invited user is already in the channel.
  • cant_invite - User cannot be invited to this channel.
  • cant_invite_self - Authenticated user cannot invite themselves to a channel.
  • channel_not_found - Value passed for channel was invalid.
  • is_archived - Channel has been archived.
  • not_in_channel - Authenticated user is not in the channel.
  • user_not_found - Value passed for user was invalid.