@ApplyOptions<Command.Options>({ description: "Create and generate a template",})@TemplateAutocomplete()export class TemplateCommand extends Command {
@ApplyOptions<Command.Options>({ description: "Create and generate a template",})@TemplateAutocomplete()export class TemplateCommand extends Command {
Also adding the option:
.addStringOption((string) => string .setName("template") .setDescription( "ID of the template to save as (defaults to share ID)", ) .setRequired(true) .setAutocomplete(true),),
.addStringOption((string) => string .setName("template") .setDescription( "ID of the template to save as (defaults to share ID)", ) .setRequired(true) .setAutocomplete(true),),
The function redefined in the decorator doesn't seem to run at all.
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
S-IaF
Sapphire - Imagine a Framework
Sapphire is a next-gen object-oriented Discord.js bot framework.