SubCommands #76
-
Am I able to create sub commands in the slash command manager using this template . |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
mind showing me how as I cant see how in the documentation |
Beta Was this translation helpful? Give feedback.
-
options: [
{
name: "subcmd",
type: ApplicationCommandOptionType.SubCommand,
required: true/false,
description: "Description"
}
] It should be something similiar to this and you can put this in the slash commands file example module.exports = {
name: "slashCmd",
options: [],
. . .
} |
Beta Was this translation helpful? Give feedback.
-
Hey @RileCraft , I have done what you suggested but Im getting a error from discord saying invalid type. Options error DiscordAPIError[50035]: Invalid Form Body |
Beta Was this translation helpful? Give feedback.
It should be something similiar to this and you can put this in the slash commands file example