diff --git a/src/commands/utility/ping.ts b/src/commands/utility/ping.ts index 04dbe75..2bdd046 100644 --- a/src/commands/utility/ping.ts +++ b/src/commands/utility/ping.ts @@ -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 !'); }