> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# get_comm_channel

> 在 communication channel list 中查找 channel ID，并返回保存的 BindableEvent Instance。第一个 argument 必须是 number，并在 lookup 前使用 integer conversion 转换。如果该 ID 没有 entry，该 function 返回 nil。

<div className="real-function-page">
  ```lua theme={null}
  get_comm_channel(channelId: number): Instance | nil
  ```

  ## 参数

  <ParamField path={"channelId"} type={"number"} required>
    使用 integer conversion 转换并在 communication channel list 中查找的 channel ID。
  </ParamField>

  ## 返回值

  <ResponseField name={"event"} type={"Instance | nil"}>
    channel ID 对应保存的 BindableEvent Instance，或当该 ID 不存在于 communication channels 中时返回 nil。
  </ResponseField>

  ## 示例

  Look up the BindableEvent Instance stored for a communication channel ID.

  ```lua theme={null}
  local channelId = create_comm_channel()
  local event = get_comm_channel(channelId)

  print(event)
  ```
</div>
