MCPcopy
hub / github.com/mattermost/mattermost / AddUserToChannel

Method AddUserToChannel

server/public/plugin/api.go:570–570  ·  view source on GitHub ↗

AddUserToChannel adds a user to a channel as if the specified user had invited them. This means the user will receive the regular notifications for being added to the channel. @tag User @tag Channel Minimum server version: 5.18

(channelId, userID, asUserId string)

Source from the content-addressed store, hash-verified

568 // @tag Channel
569 // Minimum server version: 5.18
570 AddUserToChannel(channelId, userID, asUserId string) (*model.ChannelMember, *model.AppError)
571
572 // GetChannelMember gets a channel membership for a user.
573 //

Calls

no outgoing calls