2023-01-21 14:58:32 +00:00
|
|
|
const { SlashCommandBuilder } = require('discord.js');
|
|
|
|
const fn = require('../modules/functions.js');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
data: new SlashCommandBuilder()
|
|
|
|
.setName('setupinfo')
|
|
|
|
.setDescription('View information about how the bot is set up in your server'),
|
|
|
|
execute(interaction) {
|
2023-01-25 08:07:41 +00:00
|
|
|
interaction.deferReply({ephemeral: true}).then(() => {
|
|
|
|
fn.getInfo(interaction.guildId).then(res => {
|
|
|
|
const embed = fn.builders.embed(res);
|
|
|
|
interaction.editReply(embed);
|
|
|
|
}).catch(err => {
|
|
|
|
interaction.editReply(err);
|
|
|
|
console.error(err);
|
|
|
|
});
|
|
|
|
}).catch(err => {
|
|
|
|
console.error(err);
|
|
|
|
});
|
2023-01-21 14:58:32 +00:00
|
|
|
},
|
|
|
|
};
|