$codeblockMessage
Returns an existing message in markdown codeblock with optional syntax highlighting.

FUNCTION USAGE

  • $codeblockMessage[channelID;messageID]
  • $codeblockMessage[channelID;messageID;syntax]

Properties:

channelID - The ID of the channel to find the message. messageID - The ID of the message to return in codeblock. syntax - Define as true or yes to add javascript syntax highlighting to the codeblock message. Otherwise, the function will simply return message in plain codeblock.

Example 1: Returns message into a codeblock with syntax highlighting.

bot.Command({
name: "code",
code: `
$codeblockMessage[$channelID;808261262416805898;yes]
`
})

Example 2: Returns message into a codeblock.

bot.Command({
name: "code",
code: `
$codeblockMessage[$channelID;808261262416805898]
`
})
Copy link