diff --git a/functions.js b/functions.js index bbf4637..a1deae7 100644 --- a/functions.js +++ b/functions.js @@ -217,7 +217,7 @@ const functions = { return { embeds: [ helpEmbed - ], ephemeral: true}; + ], ephemeral: true }; }, gif(commandData) { return { embeds: [new Discord.MessageEmbed() diff --git a/slash-commands/help.js b/slash-commands/help.js index d424e6b..d18d9fe 100644 --- a/slash-commands/help.js +++ b/slash-commands/help.js @@ -5,26 +5,28 @@ module.exports = { data: new SlashCommandBuilder() .setName('help') .setDescription('Send the help page.') - .addStringOption(option => - option.setName('location') - .setDescription('Send help in this channel or in DMs?') - .setRequired(true) - .addChoice('Here', 'channel') - .addChoice('DMs', 'dm')), + // .addStringOption(option => + // option.setName('location') + // .setDescription('Send help in this channel or in DMs?') + // .setRequired(true) + // .addChoice('Here', 'channel') + // .addChoice('DMs', 'dm')) + , async execute(interaction) { - switch (interaction.options.getString('location')) { - case 'channel': - await interaction.reply(fn.embeds.help(interaction)); - break; - case 'dm': - await interaction.user.createDM().then(channel => { - channel.send(fn.embeds.help(interaction)); - interaction.reply('I\'ve sent you a copy of my help page.'); - }); - break; - default: - interaction.reply('There was an error, please try again.'); - break; - } + // switch (interaction.options.getString('location')) { + // case 'channel': + // await interaction.reply(fn.embeds.help(interaction)); + // break; + // case 'dm': + // await interaction.user.createDM().then(channel => { + // channel.send(fn.embeds.help(interaction)); + // interaction.reply({content: 'I\'ve sent you a copy of my help page.', ephemeral: true}); + // }); + // break; + // default: + // interaction.reply('There was an error, please try again.'); + // break; + // } + await interaction.reply(fn.embeds.help(interaction)); }, }; \ No newline at end of file