Skip to content
Entity Info messageData

$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

$messageData[$channelID;$messageID;url]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.