v3.0.1 (2022/6/6) | (updated)
Hi (ᴗ ω ᴗ)
This is just an experiment for "slash commands" ( "@discordjs/rest" + "@discordjs/builders" ) in a simple way :3
❒ | if you need something » Unknown_#7004
Cmd examples?
Test:
const { SlashCommandBuilder } = require("@discordjs/builders");
const data = new SlashCommandBuilder()
.setName(" ") // [1] command Name
.setDescription(" "); // [2] command description
module.exports = {
global: false, // [3] Command (Guild/Global) (true = Global, flase = Guild)
data: data, // cmd data*
async execute(client, interaction) {
await interaction.reply({ content: " ", ephemeral: true }); // [5] Command replay
}
};Install bot
npm install requestnpm install discord.jsnpm install fsnpm install osnpm install ascii-tablenpm install expressnpm install @discordjs/restbye :3?
