diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-09-05 11:38:26 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-09-05 11:38:26 -0400 |
commit | f924dd8fcaeca7523289b9aba46b6145c46b42dd (patch) | |
tree | 70294b1266fa1846b7ea122e88e48483fae3278e /commands | |
parent | e4450c8417624b71d779cb4f41692538f9165e10 (diff) | |
download | sowbot3-f924dd8fcaeca7523289b9aba46b6145c46b42dd.tar.gz sowbot3-f924dd8fcaeca7523289b9aba46b6145c46b42dd.tar.bz2 sowbot3-f924dd8fcaeca7523289b9aba46b6145c46b42dd.zip |
rename /use to /send, add resetcmd
Diffstat (limited to 'commands')
-rw-r--r-- | commands/add.js | 10 | ||||
-rw-r--r-- | commands/preview.js | 2 | ||||
-rw-r--r-- | commands/send.js (renamed from commands/use.js) | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/commands/add.js b/commands/add.js index 5d74b6a..0fbdb56 100644 --- a/commands/add.js +++ b/commands/add.js @@ -3,10 +3,10 @@ const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() .setName('add') - .setDescription('Add a Command') + .setDescription('Add a command') .addStringOption(option => - option.setName('command') - .setDescription('The name of the command `/use THIS`') + option.setName('name') + .setDescription('The name of the command `/send THIS`') .setRequired(true)) .addStringOption(option => option.setName('content') @@ -15,8 +15,8 @@ module.exports = { async execute(interaction) { if (global.data.getList().length <= 25) { - global.data.add(interaction.options.getString('command'),interaction.options.getString('content')); - await interaction.reply('Added `'+interaction.options.getString('command')+'`.'); + global.data.add(interaction.options.getString('name'),interaction.options.getString('content')); + await interaction.reply('Added `'+interaction.options.getString('name')+'`.'); } else { diff --git a/commands/preview.js b/commands/preview.js index 013f650..3ca6780 100644 --- a/commands/preview.js +++ b/commands/preview.js @@ -6,7 +6,7 @@ module.exports = { .setDescription('Only you can see this!') .addStringOption(option => option.setName('command') - .setDescription('Name of the command to display') + .setDescription('Name of the command to preview') .setRequired(true) .addChoices(...global.data.getList()) ), diff --git a/commands/use.js b/commands/send.js index dc9897b..a339784 100644 --- a/commands/use.js +++ b/commands/send.js @@ -2,11 +2,11 @@ const { SlashCommandBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() - .setName('use') - .setDescription('Use a Command') + .setName('send') + .setDescription('Send a command') .addStringOption(option => option.setName('command') - .setDescription('What the bot will send') + .setDescription('Name of the command to send') .setRequired(true) .addChoices(...global.data.getList()) ), |