$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.

1
bot.Command({
2
name: "code",
3
code: `
4
$codeblockMessage[$channelID;808261262416805898;yes]
5
`
6
})
Copied!

Example 2: Returns message into a codeblock.

1
bot.Command({
2
name: "code",
3
code: `
4
$codeblockMessage[$channelID;808261262416805898]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link
Contents
Properties: