Dolliwyx
Dolliwyx
SIASapphire - Imagine a framework
Created by Dolliwyx on 11/24/2023 in #sapphire-support
Cannot set properties of undefined when extending `container`
I see, thank you for the quick response!! peepoLove
8 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 11/24/2023 in #sapphire-support
Cannot set properties of undefined when extending `container`
Ah I see, that's all I have to change, my augments are fine as it is?
8 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/23/2023 in #sapphire-support
Async Preconditions
so the few ways I can get past this is by either manually annotating the return type, or by making the switch to yarn or npm?
19 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/23/2023 in #sapphire-support
Async Preconditions
ah I see I see pepeThink
19 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/23/2023 in #sapphire-support
Async Preconditions
Ohhh it's like this I see
19 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/23/2023 in #sapphire-support
Async Preconditions
I've tried annotating it to Promise<PreconditionResult> but it gave me more errors than before kekw
19 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/23/2023 in #sapphire-support
Async Preconditions
I still receive the same error, I've done the following: - pnpm update --latest - Delete node_modules and pnpm_lock.yaml - pnpm install - Restarted TS language server
19 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/22/2023 in #sapphire-support
Sample implementation of per-subcommand preconditions
I see! Cool stuff, thank you!
8 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/22/2023 in #sapphire-support
Sample implementation of per-subcommand preconditions
Additional question, should I have a command with subcommands, and I'd like a certain command to only run in DMs but the rest can run in text channels, how would I be able to achieve this now that run in preconditions are deprecated?
8 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/22/2023 in #sapphire-support
Sample implementation of per-subcommand preconditions
Thank you!!
8 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/21/2023 in #sapphire-support
Question about "runIn" preconditions
I see, thank you! bloblove
9 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/21/2023 in #sapphire-support
Question about "runIn" preconditions
Prayge
9 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/21/2023 in #sapphire-support
Question about "runIn" preconditions
amazing POGGERS
9 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/21/2023 in #sapphire-support
Question about "runIn" preconditions
I see, so if I understood this correctly, the correct way to do the core preconditions now are through runIn, and not the preconditions option anymore?
9 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/6/2023 in #sapphire-support
Interaction and Message Function Preconditions
I see, thank you!!
12 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/6/2023 in #sapphire-support
Interaction and Message Function Preconditions
No worries! Thank you for time Prayge
12 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/6/2023 in #sapphire-support
Interaction and Message Function Preconditions
You can create function preconditions to apply preconditions to certain subcommands through decorators. It's found here: https://github.com/sapphiredev/utilities/blob/main/packages/decorators/src/utils.ts#L73
12 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 8/6/2023 in #sapphire-support
Interaction and Message Function Preconditions
Yep, this is true but would it be possible too using precondition decorators?
12 replies
SIASapphire - Imagine a framework
Created by Dolliwyx on 7/19/2023 in #sapphire-support
Regarding containers
Ah I see so it was called before the Client, it's all good now, thank you for the clarification!!
6 replies