mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-05-01 03:09:35 +00:00
General Updates
This commit is contained in:
parent
a67829c6f1
commit
cdb82b771e
10 changed files with 161 additions and 129 deletions
|
@ -1,17 +1,19 @@
|
|||
import { SlashCommandBuilder, CommandInteraction } from 'discord.js';
|
||||
import { SlashCommandBuilder, CommandInteraction } from "discord.js";
|
||||
|
||||
interface Command {
|
||||
data: Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">;
|
||||
execute: (interaction: CommandInteraction) => Promise<void>;
|
||||
data: Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">;
|
||||
execute: (interaction: CommandInteraction) => Promise<void>;
|
||||
}
|
||||
|
||||
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.`);
|
||||
},
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("server")
|
||||
.setDescription("Provides information about the server."),
|
||||
execute: async (interaction) => {
|
||||
await interaction.reply(
|
||||
`The server name is ${interaction?.guild?.name} and it has ${interaction?.guild?.memberCount} members.`
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
export default command;
|
||||
export default command;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue