mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-23 05:01:54 +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 {
|
export default {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('ping')
|
.setName('ping')
|
||||||
.setDescription('Pong again!'),
|
.setDescription('Pong again!')
|
||||||
|
.setIntegrationTypes(
|
||||||
|
ApplicationIntegrationType.GuildInstall,
|
||||||
|
ApplicationIntegrationType.UserInstall
|
||||||
|
)
|
||||||
|
.setContexts(
|
||||||
|
InteractionContextType.BotDM,
|
||||||
|
InteractionContextType.Guild,
|
||||||
|
InteractionContextType.PrivateChannel
|
||||||
|
),
|
||||||
async execute(interaction : CommandInteraction) {
|
async execute(interaction : CommandInteraction) {
|
||||||
await interaction.reply('Pong !');
|
await interaction.reply('Pong !');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user