Set ping cmd for user mp and other.

This commit is contained in:
2025-10-28 11:44:54 +01:00
parent c41ef18355
commit 4c810243a9

View File

@@ -1,9 +1,18 @@
import { CommandInteraction, SlashCommandBuilder } from "discord.js";
import { ApplicationIntegrationType, CommandInteraction, InteractionContextType, SlashCommandBuilder } from "discord.js";
export default {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Pong again!'),
.setDescription('Pong again!')
.setIntegrationTypes(
ApplicationIntegrationType.GuildInstall,
ApplicationIntegrationType.UserInstall
)
.setContexts(
InteractionContextType.BotDM,
InteractionContextType.Guild,
InteractionContextType.PrivateChannel
),
async execute(interaction : CommandInteraction) {
await interaction.reply('Pong !');
}