ian
ian
Explore posts from servers
SIASapphire - Imagine a framework
Created by Np 🌸 on 1/21/2023 in #sapphire-support
Shared handler
export class ButtonInteractionHandler extends InteractionHandler {}

export class SelectMenuInteractionHandler extends InteractionHandler {}
export class ButtonInteractionHandler extends InteractionHandler {}

export class SelectMenuInteractionHandler extends InteractionHandler {}
7 replies
SIASapphire - Imagine a framework
Created by Np 🌸 on 1/21/2023 in #sapphire-support
Shared handler
you can export multiple classes in one file and sapphire will register them.
7 replies
SIASapphire - Imagine a framework
Created by Np 🌸 on 1/21/2023 in #sapphire-support
Shared handler
I believe you can't since the interactionType (or type i forgot) option for InteractionHandlerOptions is required, you might want to create 2 files in a folder within your interaction-handlers to organise your handlers.
7 replies
SIASapphire - Imagine a framework
Created by ian on 12/29/2022 in #sapphire-support
Command Error
thanks!
14 replies
SIASapphire - Imagine a framework
Created by ian on 12/29/2022 in #sapphire-support
Command Error
it runs before i deleted it, i'll try creating the listener again
14 replies
SIASapphire - Imagine a framework
Created by ian on 12/29/2022 in #sapphire-support
Command Error
ig i extended a Subcommand, which has it's own and similar set of error listeners
14 replies
SIASapphire - Imagine a framework
Created by ian on 12/29/2022 in #sapphire-support
Command Error
I'm using the Events constant (or enum i suppose) directly from the lib, so i don't think spelling's the problem.
14 replies
SIASapphire - Imagine a framework
Created by ian on 12/29/2022 in #sapphire-support
Command Error
I tried emitting the event manually, it runs. I wonder why Sapphire doesn't.
14 replies