silvanus/slash-commands/setupinfo.js

12 lines
379 B
JavaScript
Raw Normal View History

2023-01-19 01:10:05 +00:00
const { SlashCommandBuilder } = require('discord.js');
const fn = require('../functions.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('setupinfo')
.setDescription('View information about how the bot is set up in your server'),
execute(interaction) {
const embed = fn.builders.embed(fn.getInfo(interaction.guildId));
interaction.reply(embed);
},
};