JcbSm
JcbSm
SIASapphire - Imagine a framework
Created by JcbSm on 5/30/2023 in #sapphire-support
@sapphire/ts-config compiler options
7 replies
SIASapphire - Imagine a framework
Created by JcbSm on 1/31/2023 in #sapphire-support
Adding a command to a guild after client is ready.
I want to make my bot modular by allowing people to enable and disable modules, and for the bot to then set the registries to add the guild etc, which functions will i need to make use of? Can't figure it out on the docs
5 replies
SIASapphire - Imagine a framework
Created by JcbSm on 1/8/2023 in #sapphire-support
Subcommands Typings clashing after updating.
src/lib/structures/PrismSubcommand.ts:27:51 - error TS2694: Namespace '"C:/Users/jacob/Documents/GitHub/THE-PRISM-V4/node_modules/@sapphire/plugin-subcommands/dist/lib/Subcommand".Subcommand' has no exported member 'ChatInputInteraction'.

27 export type ChatInputInteraction = Subcommand.ChatInputInteraction & {
~~~~~~~~~~~~~~~~~~~~
src/lib/structures/PrismSubcommand.ts:27:51 - error TS2694: Namespace '"C:/Users/jacob/Documents/GitHub/THE-PRISM-V4/node_modules/@sapphire/plugin-subcommands/dist/lib/Subcommand".Subcommand' has no exported member 'ChatInputInteraction'.

27 export type ChatInputInteraction = Subcommand.ChatInputInteraction & {
~~~~~~~~~~~~~~~~~~~~
4 replies
SIASapphire - Imagine a framework
Created by JcbSm on 1/7/2023 in #sapphire-support
Set ApplicationCommandOption max value to be a function
For a "page" option in a command, I want to set the max value in the options rather than checking after the user run's the command. Is there any way to do this?
23 replies
SIASapphire - Imagine a framework
Created by JcbSm on 1/6/2023 in #sapphire-support
Best way to make ButtonInteractions persistent after restarts?
I'm just wondering if there are any built in ways, or ways you might make button interactions persistent over restarts. I'm trying to make a page up/down button, but having a separate listener/collector means that 1. I have to figure out the current page of the message afterwards. 2. Have to fetch all the data again Does the framework provide anything to help with this?
6 replies
SIASapphire - Imagine a framework
Created by JcbSm on 1/5/2023 in #sapphire-support
Getting the client to log a list of registered commands and if they are global
I was just wondering if there was a way, once the ApplicationCommandRegistry finished initialising, I could get the registered command data?
18 replies
SIASapphire - Imagine a framework
Created by JcbSm on 12/16/2022 in #sapphire-support
Getting ChannelType from APIInteractionDataResovledChannel
I'm currently trying to work with chat input commands. And when I create an channel option and use .getChannel() to retrieve it. The return type has APIInteractionDataResolvedChannel which can't be used with methods such as isTextBasedChannel() is there something I am doing wrong? I've checked the documetnation and APIInteractionDataResolvedChannel is not in the ChanelTypes typedef.
11 replies
SIASapphire - Imagine a framework
Created by JcbSm on 12/6/2022 in #sapphire-support
Conflicting data types with isMessageInstance()
30 replies
SIASapphire - Imagine a framework
Created by JcbSm on 12/6/2022 in #sapphire-support
Sapphire doesn't compile wirh discord.js v14
9 replies