Teixeira
Explore posts from serversSIASapphire - Imagine a framework
•Created by Teixeira on 12/30/2024 in #sapphire-support
`ApplicationCommandType` TypeError
I'm using npm workspaces and I had placed the
overrides
key in the workspace's package.json
but it needed to be in my "root" package's package.json
instead, that fixed it, thank you again for the help!9 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 12/30/2024 in #sapphire-support
`ApplicationCommandType` TypeError
Yes I did :/ I'll check it out with them, thank you for the help! When/if I find the solution I'll post it here
9 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 12/30/2024 in #sapphire-support
`ApplicationCommandType` TypeError
Still getting the same error after setting
overrides
and running npm i
(also tried deleting node_modules
)
9 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 11/21/2024 in #sapphire-support
Precondition not triggering "chatInputCommandDenied"
Oh man. Of course... what a rookie mistake! Thank you, this fixed it!
9 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 11/21/2024 in #sapphire-support
Precondition not triggering "chatInputCommandDenied"
And here's the setting of the precondition on the command:
CMServerDefaults.ts
9 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 11/21/2024 in #sapphire-support
Precondition not triggering "chatInputCommandDenied"
I know for a fact that the precondition is firing & returning an error in my test, as I've added a breakpoint to the
return this.error (...)
statement9 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 11/21/2024 in #sapphire-support
Precondition not triggering "chatInputCommandDenied"
However, my
chatInputCommandDenied
listener isn't firing:
ChatInputCommandDenied.ts
9 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 11/21/2024 in #sapphire-support
Precondition not triggering "chatInputCommandDenied"
ValidAutocompletedObjectIdArguments.ts
9 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 11/20/2024 in #discordjs-support
Is there a way to make autocomplete options only accept a listed option - not "custom" inputs?
Thank you both
7 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 11/20/2024 in #discordjs-support
Is there a way to make autocomplete options only accept a listed option - not "custom" inputs?
I see, I was hoping there was an alternative to validating the input (which is what I've been doing - in my case each option's value is an object id related to a mongoDB document, so now I just make it check if the value is a valid ObjectId string)
7 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 10/22/2024 in #sapphire-support
How can I delay the loading of pieces?
Think I should be able to do it with this but wanted to sanity check I'm not stupidly overthinking this and there's a much easier way to do it 😅
13 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 10/22/2024 in #sapphire-support
How can I delay the loading of pieces?
I want to load the emojis based on their names, and since I'm then using these custom emojis on some of my pieces, I want to make sure they're loaded before I start receiving events/commands
13 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 10/22/2024 in #sapphire-support
How can I delay the loading of pieces?
13 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 10/22/2024 in #sapphire-support
How can I delay the loading of pieces?
By the way since I have you here... This is related to something I'm trying to do for emojis after setting up your package
@favware/discord-application-emojis-manager
. I followed up on the message from your private server "Favware", not sure if you've seen it13 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 10/22/2024 in #sapphire-support
How can I delay the loading of pieces?
Awesome this is exactly what I'm looking for
13 replies
SIASapphire - 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/[email protected]
@sapphire/[email protected]
[email protected]
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