sapphire-slashcommands

a simple slashcommand package for @sapphire/framework NOT Supported Officially. for support open a issue

Usage no npm install needed!

<script type="module">
  import sapphireSlashcommands from 'https://cdn.skypack.dev/sapphire-slashcommands';
</script>

README

sapphire-slashcommands

a simple slashcommand package for @sapphire/framework
NOT Supported Officially. for support open a issue

usage

A table with steps:

Step 1 npm i @outramsean0/sapphire-slashcommands
Step 2:

make your index.js this:
const { SlashiesBot } = require('@outramsean0/sapphire-slashcommands');
const client = new SlashiesBot();
client.login('(token here)')

Step 3: Enjoy!
To add Commands!
Step 1: Create A slashcommands folder inside of the same directory as your index.js file
Step 2: create a file called (name).js
Step 3:

Fill the file with
const SlashCommand = require("sapphire-slashcommands"); module.exports = class Ping extends SlashCommand { constructor(context) { super(context, { name: "ping", description: "Pongs when pinged.", options: [], guildOnly: process.env.dev }); } async run(interaction) { await interaction.deferReply(); } };

Step 4: Now You can edit to your own desire

Credits

made with help with yorks implementation.