silvanus/slash-commands/help.js
Skylar Grant 83a05374cf
V1.1.0-dev-3 (#6)
* New Name, New Version

* New default branch name

* Migrate to database for long term storage

* Fix uncaught call to a promise

* Reverse the leaderboard

* QoL and Bug fixes

* Handle server timeout

* Pretty help message
2023-01-25 03:07:41 -05:00

20 lines
818 B
JavaScript

const { SlashCommandBuilder, messageLink } = require('discord.js');
const fn = require('../modules/functions.js');
const strings = require('../data/strings.json');
module.exports = {
data: new SlashCommandBuilder()
.setName('help')
.setDescription('Get help using the bot')
.addStringOption(o =>
o.setName('private')
.setDescription('Should the response be sent privately?')
.setRequired(true)
.addChoices(
{ name: "True", value: "true" },
{ name: "False", value: "false" })),
execute(interaction) {
const helpEmbed = fn.builders.helpEmbed(`${strings.help.info}\n\n**Setup**\n${strings.help.setup}\n\n**All Commands**\n${strings.help.allCommands}\n\n**Support Server**\n${strings.urls.supportServer}`, interaction.options.getString('private'));
interaction.reply(helpEmbed);
},
};