Markiš
Markiš
DIAdiscord.js - Imagine an app
Created by Markiš on 3/15/2024 in #djs-questions
Is it possible to separate interaction for 2 subcommands?
I want to have a command /clan add and /clan change which I want to implement as a subcommand. After the usual (it's an example)
const data = new SlashCommandBuilder()
.setName('clan')
.setDescription('Test')
.addSubcommand(subcommand =>
subcommand
.setName('add')
.setDescription('Adds')
.addSubcommand(subcommand =>
subcommand
.setName('change')
.setDescription('Changes'));
const data = new SlashCommandBuilder()
.setName('clan')
.setDescription('Test')
.addSubcommand(subcommand =>
subcommand
.setName('add')
.setDescription('Adds')
.addSubcommand(subcommand =>
subcommand
.setName('change')
.setDescription('Changes'));
How would the async execute(interaction) work for those two and could they be implemented separately or pick up some tag on which command they chose (add or change)?
3 replies
DIAdiscord.js - Imagine an app
Created by Markiš on 3/4/2024 in #djs-questions
Is it possible for a command interaction to call another command in its execution?
Instead of creating the same embed twice is it possible from lets say "command 1" to call the command "embed" so it runs through the embed command and executes it?
5 replies
DIAdiscord.js - Imagine an app
Created by Markiš on 3/1/2024 in #djs-questions
Array of objects into embed fields
No description
6 replies