Refactor ping command to remove explicit type for interaction and add button command implementation

This commit is contained in:
2025-10-29 16:25:02 +01:00
parent e389aae51f
commit 61a97fcb7f
3 changed files with 33 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ const cmd : CommandDefinition = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Pong again!'),
async execute(interaction : ChatInputCommandInteraction) {
async execute(interaction) {
await interaction.reply('Pong !');
}
}