# $messageData

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

## Syntax

```
$messageData[channelID;messageID;(field)]
```

## Parameters

| Parameter | Description |
|---|---|
| `channelID` | **Required.** The ID of the channel. |
| `messageID` | **Required.** The ID of the message. |
| `field` | Optional. `id`, `channelID`, `guildID`, `timestamp`, `editedTimestamp`, `url`, `type`, `pinned`, `tts`, `flags`, `attachmentCount`, `embedCount`, `referenceID`, `mentionEveryone`, `webhookID`, `json`, or a path such as `author.username`. |

## Return Value

- The message as JSON, or the requested field.

## Example

```bdfd
$messageData[$channelID;$messageID;url]
```
