eternalxty
DIAdiscord.js - Imagine an app
•Created by eternalxty on 10/27/2023 in #djs-questions
Split command
work.js
action.js
module.exports = {
structure: new SlashCommandBuilder()
.setName("creative")
.setDescription("test")
.addSubcommand(subcommand =>
subcommand
.setName("work")
.setDescription("test")
),
/**
* @param {ExtendedClient} client
* @param
{ChatInputCommandInteraction<true>} interaction
*/
run: async (client, interaction, args) => {
},
};
module.exports = {
structure: new SlashCommandBuilder()
.setName("creative")
.setDescription("test")
.addSubcommand(subcommand =>
subcommand
.setName("work")
.setDescription("test")
),
/**
* @param {ExtendedClient} client
* @param
{ChatInputCommandInteraction<true>} interaction
*/
run: async (client, interaction, args) => {
},
};
module.exports = {
structure: new SlashCommandBuilder()
.setName("creative")
.setDescription("test")
.addSubcommand(subcommand =>
subcommand
.setName('action')
.setDescription('test')
.addUserOption((option) =>
option.setName("User").setDescription("Select User").setRequired(true)
)),
/**
* @param {ExtendedClient} client
* @param {ChatInputCommandInteraction<true>} interaction
*/
run: async (client, interaction, args) => {
},
};
module.exports = {
structure: new SlashCommandBuilder()
.setName("creative")
.setDescription("test")
.addSubcommand(subcommand =>
subcommand
.setName('action')
.setDescription('test')
.addUserOption((option) =>
option.setName("User").setDescription("Select User").setRequired(true)
)),
/**
* @param {ExtendedClient} client
* @param {ChatInputCommandInteraction<true>} interaction
*/
run: async (client, interaction, args) => {
},
};
11 replies