mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-04-30 18:59:40 +00:00
Fixed deploy command script and made the commands work. The bot is working as expected.
This commit is contained in:
parent
ef298accc3
commit
4a9f5538a3
6 changed files with 77 additions and 62 deletions
|
@ -1,14 +1,16 @@
|
|||
import { SlashCommandBuilder } from 'discord.js';
|
||||
import { SlashCommandBuilder, CommandInteraction } from 'discord.js';
|
||||
|
||||
interface Command {
|
||||
data: SlashCommandBuilder;
|
||||
execute: (interaction: any) => Promise<void>;
|
||||
data: Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">;
|
||||
execute: (interaction: CommandInteraction) => Promise<void>;
|
||||
}
|
||||
|
||||
export const command: Command = {
|
||||
data: new SlashCommandBuilder().setName('ping').setDescription('Replies with Pong!'),
|
||||
const command: Command = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('ping')
|
||||
.setDescription('Replies with Pong!'),
|
||||
execute: async (interaction) => {
|
||||
await interaction.reply('Pong!');
|
||||
await interaction.reply(`Pong!`);
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue