DEV Community

Anup Bhattarai
Anup Bhattarai

Posted on

1

How to use syntax highlighting for code Blocks for Bot in discord.js (v13)?

I am trying to make a terminal accessible in the discord using the bot. The code for this command is :

const { Client, Message, MessageEmbed } = require("discord.js")
const child = require("child_process");

module.exports = {
  name: "terminal",
  /**
   * @param {Client} client
   * @param {Message} message
   * @param {String[]}

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay