Removed Custom Builder. Cleaned-Up package.json. Make the bot partially work. Command register was added but, has to be fixed.

This commit is contained in:
Ahmad Khan 2023-09-21 20:15:38 -04:00
parent 169ef72bfd
commit 4e818fb965
14 changed files with 152 additions and 360 deletions

13
source/commands/server.ts Normal file
View file

@ -0,0 +1,13 @@
import { SlashCommandBuilder } from 'discord.js';
interface Command {
data: SlashCommandBuilder;
execute: (interaction: any) => Promise<void>;
}
export const command: Command = {
data: new SlashCommandBuilder().setName('server').setDescription('Provides information about the server.'),
execute: async (interaction) => {
await interaction.reply(`This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.`);
},
};