13 lines
432 B
TypeScript
13 lines
432 B
TypeScript
// import type { ChatInputCommandInteraction } from "discord.js";
|
|
import { SlashCommandBuilder, } from "discord.js";
|
|
|
|
export const data = new SlashCommandBuilder()
|
|
.setName("ping")
|
|
.setDescription("Send a ping to the bot");
|
|
|
|
export async function execute(interaction) {
|
|
await interaction.reply(
|
|
`Pong! This command was run by ${interaction.user.username}, who joined on ${interaction.member.joinedAt}.`
|
|
);
|
|
}
|