Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Latest commit

 

History

History
41 lines (27 loc) · 777 Bytes

File metadata and controls

41 lines (27 loc) · 777 Bytes

This method is used to invite a user to a private channel. The calling user must be a member of the private channel.

To invite a new member to a private channel without giving them access to the archives of the private channel, call the groups.createChild method before inviting.

Arguments

{ARGS}

Response

If successful, the API response includes a group object:

{
    "ok": true,
    "group": {
        …
    },
}

If the invited user is already in the private channel, the response will include an already_in_group property:

{
    "ok": true,
    "already_in_group": true,
    "group": {
        …
    },
}

Errors

{ERRORS}

Warnings

{WARNINGS}