# $channelData

Reads a channel from Discord: the whole object as JSON, or one field. Bot Creator function, not in the official BDFD wiki.

## Syntax

```
$channelData[(channelID);(field)]
```

## Parameters

| Parameter | Description |
|---|---|
| `channelID` | Optional. The ID of the channel. |
| `field` | Optional. The field to read, as a path (`owner_id`, `user.username`, `roles.0`; camelCase names work too). Empty: the whole object as JSON. |

## Return Value

- The object as JSON, or the requested field.

## Example

```bdfd
$channelData[$channelID;name]
```
