mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 09:48:56 +01:00
Set ping cmd for user mp and other.
This commit is contained in:
@@ -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 !');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user