Genos
Genos
SIASapphire - Imagine a framework
Created by Genos on 9/20/2024 in #discordjs-support
Subcommand not registering
I just replaced the new SlashCommandBuilder() with (builder) => builder and now it works!
// Pretty much like this:
export class ChannelsCommand extends Subcommand {
public override registerApplicationCommands(registry: ChatInputCommand.Registry) {
registry.registerChatInputCommand((builder) =>
builder
.setName(this.name)
.setDescription(this.description)
// ...
// Pretty much like this:
export class ChannelsCommand extends Subcommand {
public override registerApplicationCommands(registry: ChatInputCommand.Registry) {
registry.registerChatInputCommand((builder) =>
builder
.setName(this.name)
.setDescription(this.description)
// ...
4 replies