Function messageParticipants

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

messageParticipants({
coHostResponsibility: [{ name: "chat", value: true }],
participant: { name: "John Doe", islevel: "1" },
member: "currentMember",
islevel: "2",
showAlert: (alert) => console.log(alert.message),
coHost: "coHostMember",
updateIsMessagesModalVisible: (isVisible) => setMessagesModalVisible(isVisible),
updateDirectMessageDetails: (participant) => setDirectMessageDetails(participant),
updateStartDirectMessage: (start) => setStartDirectMessage(start),
});