Button handler is not calling parse method

I have a button, it was working but it stopped for some reason on @sapphire/[email protected] Code
@ApplyOptions<InteractionHandler.Options>({
name: 'justice-submit',
interactionHandlerType: InteractionHandlerTypes.Button
})
export class ButtonHandler extends InteractionHandler {
public override parse(interaction: ButtonInteraction) {
console.log('button is executing');
...
}
...
}
@ApplyOptions<InteractionHandler.Options>({
name: 'justice-submit',
interactionHandlerType: InteractionHandlerTypes.Button
})
export class ButtonHandler extends InteractionHandler {
public override parse(interaction: ButtonInteraction) {
console.log('button is executing');
...
}
...
}
This never logs anything
4 Replies
disclosuure
disclosuureOP16mo ago
It's in interaction-handlers/buttons folder
Lioness100
Lioness10016mo ago
@cosigyn, in your main file, before you login, import Store from @sapphire/framework, then add the line Store.logger = console.log. Then, check the logs to make sure the interaction handler is loading correctly.
disclosuure
disclosuureOP16mo ago
Would this be the issue.. https://ss.clanware.org/m9tgBN.png
disclosuure
disclosuureOP16mo ago
I have a modal and button handler with the same name yep
Want results from more Discord servers?
Add your server