silvanus/slash-commands/about.js

20 lines
672 B
JavaScript
Raw Normal View History

2023-06-08 00:10:49 +00:00
const { SlashCommandBuilder, messageLink } = require('discord.js');
const fn = require('../modules/functions.js');
const strings = require('../data/strings.json');
module.exports = {
data: new SlashCommandBuilder()
.setName('about')
.setDescription('Get info about 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" })),
2023-06-10 19:03:00 +00:00
async execute(interaction) {
const aboutEmbed = fn.builders.aboutEmbed(interaction.options.getString('private'));
await interaction.reply(aboutEmbed);
2023-06-08 00:10:49 +00:00
},
};