Function __global->is_chat_moderator

Definitions

sources/chat.php

  • Find whether a member is a moderator of a chatroom.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id MEMBER No No required parameter N/A N/A Member ID
$room_id AUTO_LINK No No required parameter N/A N/A Room ID
$room_owner ?MEMBER No No required parameter N/A N/A Room owner (null: none)

Returns

  • Whether the member is a moderator of the chatroom
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find whether a member is a moderator of a chatroom.
 *
 * @param  MEMBER $member_id Member ID
 * @param  AUTO_LINK $room_id Room ID
 * @param  ?MEMBER $room_owner Room owner (null: none)
 * @return boolean Whether the member is a moderator of the chatroom
 */

function is_chat_moderator(int $member_id, int $room_id, ?int $room_owner) : bool