Teixeira
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by Teixeira on 1/13/2025 in #djs-questions
`ModalBuilder` validation error
I'm confused though I thought I'd only be able to import things that were direct dependencies of my project, not dependencies of dependencies
7 replies
DIAdiscord.js - Imagine an app
•Created by Teixeira on 1/13/2025 in #djs-questions
`ModalBuilder` validation error
Ah I see. I don't have
@discordjs/builders
installed but I am using @sapphire/framework
which does have it as a dependency7 replies
DIAdiscord.js - Imagine an app
•Created by Teixeira on 1/13/2025 in #djs-questions
`ModalBuilder` validation error
Damn.
7 replies
DIAdiscord.js - Imagine an app
•Created by Teixeira on 1/13/2025 in #djs-questions
`ModalBuilder` validation error
import { ModalBuilder } from 'discord.js';
and import { ActionRowBuilder } from '@discordjs/builders';
7 replies
SIASapphire - 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