uwu-user / discord.js-slash-commands

discord.js v13.8.0 slash commands :3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


log Screenshot

Screenshot

❒ | 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 request
npm install discord.js
npm install fs
npm install os
npm install ascii-table
npm install express
npm install @discordjs/rest

bye :3?

About

discord.js v13.8.0 slash commands :3


Languages

Language:JavaScript 100.0%