Search

Invite To Channel

Last Updated: Nov 4, 2020

Articles

Use this function to invite users to the given channel.

Syntax

Invite To Channel (token, channel_id, user_id)

Parameters

Input Parameter Name Description
token Authentication token
channel_id ID of the channel to be invited to
user_id ID of the user to Invite

Returns

Return Value Description
Output
  • On Success: 1, Invited Successfully
  • On Failure: 0, Error Message

Sample

Invite To Channel (ABCDE, NC-45, PPL-223)

  • Uses the token ‘ABCDCEF’ to authenticate the connection to the Slack application, invites the user with ID ‘PPL-223’ to the channel with ID ‘NC-45’.
    Returns ‘Invited Successfully’ on inviting the user.

To view all the Slack functions, click here.

Did you find what you were looking for?