Teixeira
Explore posts from serversRoute not found when using Fastify adapter
I'm currently running into the following error when attempting to issue a request to my server which is leveraging Fastify:
I'm instantiating the server as such:
appRouter
looks like this:
associateSocialMediaAccount.ts:
I have triple checked that the client and server versions of tRPC match ( ^11.0.0-rc.700
), I'm on "typescript": "^5.7.3"
on both server and client, Node version v22.11.0
4 replies
DIAdiscord.js - Imagine an app
•Created by Teixeira on 1/13/2025 in #djs-questions
`ModalBuilder` validation error
When creating a modal like this:
I'm running into this error: https://pastebin.com/S5fda8s4
Not sure what the issue could be as the validation error isn't really helpful (or I just don't know how to interpret it;
CustomModal
for reference
7 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 1/13/2025 in #discordjs-support
`ModalBuilder` validation error
When creating a modal like this:
I'm running into this error: https://pastebin.com/S5fda8s4
Not sure what the issue could be as the validation error isn't really helpful (or I just don't know how to interpret it;
CustomModal
for reference
3 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 12/30/2024 in #sapphire-support
`ApplicationCommandType` TypeError
I'm attempting to create a context menu command:
I'm getting the following TypeError:
I've tried importing the enum from
discord-api-types/v10
instead but it throws the same error, not sure what I'm doing wrong!9 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 11/21/2024 in #sapphire-support
Precondition not triggering "chatInputCommandDenied"
I have setup the following precondition:
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?
Title
7 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 10/22/2024 in #sapphire-support
How can I delay the loading of pieces?
Is there a way I can control when the pieces are loaded instead of having them loaded automatically on
<SapphireClient>.login
? I'd like to login to the client, then wait for the resolving of an async function, and then load the pieces in.13 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 6/2/2024 in #sapphire-support
Validation error in `SlashCommandBuilder.addSubcommand`
21 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 5/10/2024 in #discordjs-support
Keep getting "Shard 0 is reconnecting..." errors
2 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 4/29/2024 in #discordjs-support
Is there a way to make the bot press a button component within a message
Wondering if there's a way to simulate a button press on a message (particularly a message that wasn't sent by the bot).
3 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 3/17/2024 in #sapphire-support
"ChatInputCommandError" listener not firing for subcommands
ChatInputCommandError.ts
:
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
Even though I'm setting
ApplicationCommandRegistries.setDefaultGuildIds(<GUILD_ID>);
before <SapphireClient>.login
the commands are still being registered globally. The commands do not have the guildIds
option set.114 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 1/24/2024 in #sapphire-support
NPM script stops working when tsconfig extends @sapphire/ts-config
My npm package has a simple build script:
When extending
@sapphire/ts-config
on my tsconfig.json
, it stops working. Using typescript^5.3.2
and rimraf^5.0.5
.
Strangely enough, running tsc
in the same working directory works as expected...
Full tsconfig.json
:
12 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 12/9/2023 in #sapphire-support
On Listeners
A couple questions on listener pieces:
- Where can I find a list of available sapphire event identifiers and their respective arguments?
- Does sapphire have any listeners or similar setup by default and if so which ones?
7 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 12/8/2023 in #sapphire-support
"Couldn't find a template file for that component type."
I'm having trouble setting up a custom component template using Sapphire CLI. Here's the template file (
custom-listener.ts.sapphire
):
When running npx sapphire generate custom-listener test
it returns Couldn't find a template file for that component type.
Default component templates work normally4 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 8/17/2023 in #sapphire-support
Can I have multiple autocomplete interaction handlers?
When an autocomplete interaction comes through, if one of the autocomplete handlers returns
this.none()
in the parse
method, will it still run the other handlers until it finds one that returns this.some()
?4 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 6/28/2023 in #sapphire-support
Setting autocomplete options based on other option's value
5 replies
DIAdiscord.js - Imagine an app
•Created by Teixeira on 6/28/2023 in #djs-questions
Setting autocomplete options based on other option's value
11 replies
SIASapphire - Imagine a framework
•Created by Teixeira on 6/28/2023 in #sapphire-support
autocompleteRun for sub commands
Is it possible to setup a
autocompleteRun
for specific subcommands similar to how it is done for chatInputRun
?6 replies