// Create a new channel member member := &model.ChannelMember{ ChannelId: "my-channel-id", UserId: "my-user-id", Roles: "channel_user", } // Get a list of members in a channel members, err := p.API.GetChannelMembers("my-channel-id", "") if err != nil { // Handle error } // Get a member by user ID and channel ID member, err := p.API.GetChannelMember("my-channel-id", "my-user-id") if err != nil { // Handle error } // Remove a member from a channel err := p.API.RemoveChannelMember("my-channel-id", "my-user-id") if err != nil { // Handle error }These examples demonstrate how to create, retrieve, and delete `ChannelMember` objects using the Mattermost platform's API. The `ChannelMember.UserId` field is used in each of these examples to identify the user associated with the member.