This prefix command sends back an example message showing how to send code blocks and other meta characters in a template string.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
if (context.params.event.content === '!codeblockdemo') {
await lib.discord.channels['@0.1.2'].messages.create({
channel_id: `${context.params.event.channel_id}`,
content: `This is how escaping characters works:
\`\`\`js
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
await lib.discord.channels['@0.1.2'].messages.create({
channel_id: \`\${context.params.event.channel_id}\`,
content: \`${context.params.event.content}\`
});
\`\`\`
`
});
}