Work with Shared Channel

The following are Apex classes for the Slack shared API methods.

Sends a request to accept an invitation in a Slack Connect channel.

Usage

See Slack's conversations.acceptSharedInvite method.

SharedChannelInviteAcceptedEvent Methods

The following are methods for SharedChannelInviteAcceptedEvent.

getAcceptingUser()

Signature

Return Value

Type: Slack.ConnectUser

getChannel()

Signature

Return Value

Type: Slack.ConnectChannel

getEventTs()

Signature

Return Value

Type: String

getInvite()

Signature

Return Value

Type: Slack.ConnectInviteDetail

getSubtype()

Signature

Return Value

Type: String

getTeamsInChannel()

Signature

Return Value

Type: List<Slack.ConnectTeam>

getType()

Signature

Return Value

Type: String

isApprovalRequired()

Signature

Return Value

Type: Boolean

setAcceptingUser(acceptingUser)

Signature

Parameters

acceptingUser

Type: Slack.ConnectUser

Return Value

Type: void

setApprovalRequired(approvalRequired)

Signature

Parameters

approvalRequired

Type: Boolean

Return Value

Type: void

setChannel(channel)

Signature

Parameters

channel

Type: Slack.ConnectChannel

Return Value

Type: void

setEventTs(eventTs)

Signature

Parameters

eventTs

Type: String

Return Value

Type: void

setInvite(invite)

Signature

Parameters

invite

Type: Slack.ConnectInviteDetail

Return Value

Type: void

setTeamsInChannel(teamsInChannel)

Signature

Parameters

teamsInChannel

Type: List<Slack.ConnectTeam>

Return Value

Type: void

Approves an accepted invitation to a Slack Connect channel.

Usage

See Slack's approveSharedInvite method.

SharedChannelInviteApprovedEvent Methods

These methods are for SharedChannelInviteApprovedEvent.

getApprovingTeamId()

Signature

Return Value

Type: String

getApprovingUser()

Signature

Return Value

Type: Slack.ConnectUser

getChannel()

Signature

Return Value

Type: Slack.ConnectChannel

getEventTs()

Signature

Return Value

Type: String

getInvite()

Signature

Return Value

Type: Slack.ConnectInviteDetail

getSubtype()

Signature

Return Value

Type: String

getTeamsInChannel()

Signature

Return Value

Type: List<Slack.ConnectTeam>

getType()

Signature

Return Value

Type: String

setApprovingTeamId(approvingTeamId)

Signature

Parameters

approvingTeamId

Type: String

Return Value

Type: void

setApprovingUser(approvingUser)

Signature

Parameters

approvingUser

Type: Slack.ConnectUser

Return Value

Type: void

setChannel(channel)

Signature

Parameters

channel

Type: Slack.ConnectChannel

Return Value

Type: void

setEventTs(eventTs)

Signature

Parameters

eventTs

Type: String

Return Value

Type: void

setInvite(invite)

Signature

Parameters

invite

Type: Slack.ConnectInviteDetail

Return Value

Type: void

setTeamsInChannel(teamsInChannel)

Signature

Parameters

teamsInChannel

Type: List<Slack.ConnectTeam>

Return Value

Type: void

Sends a request to decline a Slack Connect channel invite.

Usage

See Slack’s delineSharedInvite method.

SharedChannelInviteDeclinedEvent Methods

These methods are for SharedChannelInviteDeclinedEvent.

getChannel()

Signature

Return Value

Type: Slack.ConnectChannel

getDecliningTeamId()

Signature

Return Value

Type: String

getDecliningUser()

Signature

Return Value

Type: Slack.ConnectUser

getEventTs()

Signature

Return Value

Type: String

getInvite()

Signature

Return Value

Type: Slack.ConnectInviteDetail

getSubtype()

Signature

Return Value

Type: String

getTeamsInChannel()

Signature

Return Value

Type: List<Slack.ConnectTeam>

getType()

Signature

Return Value

Type: String

setChannel(channel)

Signature

Parameters

channel

Type: Slack.ConnectChannel

Return Value

Type: void

setDecliningTeamId(decliningTeamId)

Signature

Parameters

decliningTeamId

Type: String

Return Value

Type: void

setDecliningUser(decliningUser)

Signature

Parameters

decliningUser

Type: Slack.ConnectUser

Return Value

Type: void

setEventTs(eventTs)

Signature

Parameters

eventTs

Type: String

Return Value

Type: void

setInvite(invite)

Signature

Parameters

invite

Type: Slack.ConnectInviteDetail

Return Value

Type: void

setTeamsInChannel(teamsInChannel)

Signature

Parameters

teamsInChannel

Type: List<Slack.ConnectTeam>

Return Value

Type: void

SharedChannelInviteReceivedEvent Methods

These methods are for SharedChannelInviteReceivedEvent.

getChannel()

Signature

Return Value

Type: Slack.ConnectChannel

getEventTs()

Signature

Return Value

Type: String

getInvite()

Signature

Return Value

Type: Slack.ConnectInviteDetail

getSubtype()

Signature

Return Value

Type: String

getType()

Signature

Return Value

Type: String