83a05374cf
* 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
21 lines
606 B
JavaScript
21 lines
606 B
JavaScript
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) {
|
|
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);
|
|
});
|
|
},
|
|
}; |