mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-04-02 09:44:14 +00:00
13 lines
455 B
TypeScript
13 lines
455 B
TypeScript
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.`);
|
|
},
|
|
};
|