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

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

View Source

Removes a user from a channel.

Required Params

  • channel - Channel to remove user from.
  • user - User to remove from channel.

Errors the API can return:

  • cant_kick_from_general - User cannot be removed from #general.
  • cant_kick_from_last_channel - User cannot be removed from the last channel they're in.
  • cant_kick_self - Authenticated user can't kick themselves from a channel.
  • channel_not_found - Value passed for channel was invalid.
  • not_in_channel - User was not in the channel.
  • restricted_action - A team preference prevents the authenticated user from kicking.
  • user_not_found - Value passed for user was invalid.