Refactor ping command to remove explicit type for interaction and add button command implementation
This commit is contained in:
@@ -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 !');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user