Patch type for interaction in ping.ts.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { CommandInteraction, SlashCommandBuilder } from "discord.js";
|
||||
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js";
|
||||
|
||||
export default {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('ping')
|
||||
.setDescription('Pong again!'),
|
||||
async execute(interaction : CommandInteraction) {
|
||||
async execute(interaction : ChatInputCommandInteraction) {
|
||||
await interaction.reply('Pong !');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user