Skip to content

scientific-dev/discord-slash-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

discord-slash-commands

Slash commands for Discord

Installation

npm i discord-slash-commands

Features

  • Customizable
  • Multiple commands support
  • Per-guild commands support

Example

const Discord = require('discord.js');
const client = new Discord.Client();

const { Slash } = require('discord-slash-commands');
const slash = new Slash(client);

client.on("ready", () => {
    console.log("Ready");
    slash.command({
        guildOnly: true,
        guildID: "GUILD_ID",
        data: {
            name: "ping",
            description: "Ping pong?",
            type: 4,
            content: `Pong! \`${client.ws.ping}ms\``
        }
    })
})

client.login("TOKEN");

Need help? Join the Support Server

© shadeoxide | Shade's Workshop - 2020

About

Slash commands for Discord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published