Button Handler
is there some sort of built-in button handler in sapphire? if no, how can I handle them
Solution:Jump to solution
Sapphire Framework
What are they? | Sapphire
These are interaction handlers! A simple class you can extend to handle almost all the interactions you may receive in
13 Replies
Solution
Sapphire Framework
What are they? | Sapphire
These are interaction handlers! A simple class you can extend to handle almost all the interactions you may receive in
do I need to put this inside a specific folder?
it's all in the guide, just read it
do I need to create 1 file per button?
again, also covered in the guide. Hint: parse method
probably wrong but is it like this?
a class can always only have 1 instance of a method. In any programming language.
I recommend reviewing the basics of classes
I figured it out, however when I click submit it says "Something went wrong. Try again."
button handler: https://pastebin.com/HnBC2tcd
modal handler: https://pastebin.com/sXUS3VTb
Pastebin
Button Handler - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Modal Handler - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
code where you create the button?
is the folder named exactly
interaction-handlers
?yes
Pastebin
button.js - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
idk then. Add some debugging to your code.
figured it out, there was a spelling error in the modal handler