Teixeira
Explore posts from serversSIASapphire - Imagine a framework
•Created by Teixeira on 6/2/2024 in #sapphire-support
Validation error in `SlashCommandBuilder.addSubcommand`
Full stack trace in case it helps and version info -
@sapphire/plugin-subcommands@6.0.3
@sapphire/framework@5.2.1
discord.js@14.15.2
21 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 6/2/2024 in #sapphire-support
Validation error in `SlashCommandBuilder.addSubcommand`
TS types say it should accept the instance directly so I assumed I could
21 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 6/2/2024 in #sapphire-support
Validation error in `SlashCommandBuilder.addSubcommand`
Yeah this is it... Why do TS types accept the respective builder instances though? By the way @Answer Overflow isn't working atm
21 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
Thank you!
114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
After updating the package I'm getting a TS error:
I ran
npm update @sapphire/framework
114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
One last thing, should I mark any of the messages here as the solution, to @Answer Overflow? Feels like I shouldn't but not sure
114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
Okay thank you both for the help!
114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
So I'll have to wait for the update to be pushed to sapphire and then I can npm update my version and should be good to go?
114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
Yep I can confirm I was using
idHints
114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/17/2024 in #sapphire-support
"ChatInputCommandError" listener not firing for subcommands
Got it, thank you!
8 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/17/2024 in #sapphire-support
"ChatInputCommandError" listener not firing for subcommands
The command with a subcommand:
8 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/17/2024 in #sapphire-support
"ChatInputCommandError" listener not firing for subcommands
It successfully catches errors from "normal" commands, used this one to test it out:
8 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
Here's the uncut command that extends
Subcommand
instead of Command
(doesn't fit on a Discord message):
https://pastebin.com/c8dkpBbs
Just in case I'm accidentally doing something that causes this issue114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
When
ApplicationCommandRegistries.setDefaultGuildIds(guildIds);
is set it registers it in the specified guild, and when it is not set it registers it globally, as it should work114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
I just tried it and it works as expected with normal commands
114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
I haven't tried it with a "normal" one yet will do that and see if it persists
114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
Could it have anything to do with the fact the command in question extends the
Subcommand
class from @sapphire/plugin-subcommands@6.0.3
instead of the "normal" Command
one?114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/14/2024 in #sapphire-support
Globally setting the guild in which to register commands by default
Ah of course makes sense
114 replies