showing results for - "slashcord"
Dominique
19 Aug 2019
1// index.js
2
3const { Client, MessageEmbed } = require(`discord.js`);
4const client = new Client()
5const Slashcord = require(`slashcord`).default;
6
7client.once(`ready`, async () => {
8    new Slashcord(client, {
9        commandsDir: `commands`,
10        testServers: [`828676951023550495`, //your test server ID
11        customSettings: {
12            permissionError: `You don't have \`{PERMISSION}\` permission!`
13        },
14    });
15});
16
17
18// commands/ping.js
19
20module.exports = {
21    name: "ping",
22    description: "Ping? Pong!",
23    testOnly: true,
24    execute: ({ interaction, args, client }) => {
25  
26     	interaction.reply(`Pong!`)
27
28    }
29}
queries leading to this page
slashcordslashcord