summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/add.js10
-rw-r--r--commands/preview.js2
-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())
),