Send the code block within a Discord channel:
import languages from "./languages";
import { codeBlock } from "discord.js";
return await interaction.reply({
content: codeBlock(languages.Python, "Hello World!"),
ephemeral: true
});
Send the code block within a Discord channel:
import languages from "./languages";
import { codeBlock } from "discord.js";
return await interaction.reply({
content: codeBlock(languages.Python, "Hello World!"),
ephemeral: true
});
import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, ChatInputCommandInteraction, EmbedBuilder } from 'discord.js'; | |
import colors from '../util/colors'; | |
/** | |
* | |
* @param {ChatInputCommandInteraction} interaction | |
* @param {EmbedBuilder} embeds | |
* @param {ButtonBuilder} buttons | |
* @returns | |
*/ |