messageParticipants

Sends a direct message to a participant if the current member has the necessary permissions.

This function checks if the current member has the required permissions based on their level and co-host responsibilities. If authorized, it initiates a direct message.

Example:

val options = MessageParticipantsOptions(
coHostResponsibility = listOf(CoHostResponsibility(name = "chat", value = true)),
participant = Participant(name = "John Doe", islevel = "1"),
member = "currentMember",
islevel = "2",
showAlert = { alert -> Logger.d("MessageParticipants", alert.message) },
coHost = "coHostMember",
)

messageParticipants(options)