Slack.Web.Groups.kick

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

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

View Source

Removes a user from a private channel.

Required Params

  • channel - Private channel to remove user from.
  • user - User to remove from private channel.

Errors the API can return:

  • cant_kick_self - You can't remove yourself from a group
  • channel_not_found - Value passed for channel was invalid.
  • not_in_group - User or caller were are not in the group
  • restricted_action - A team preference prevents the authenticated user from kicking.
  • user_not_found - Value passed for user was invalid.