Sapphire's approach to components

Does sapphire introduce a new way to handle component interaction? Non persistent components, If so what are they
Solution:
If you mean a scenario where the bot would reply with a component and then listen to that, I'd recommend either: 1. If something simple like a Yes/No button, just use message.awaitMessageComponentInteraction 2. If inputs result in completely separate functionality like Singleplayer vs Multiplayer, stringify all necessary state and add it to the custom ID, then parse it out in separate interaction handlers...
Jump to solution
4 Replies
Solution
Lioness100
Lioness10011mo ago
If you mean a scenario where the bot would reply with a component and then listen to that, I'd recommend either: 1. If something simple like a Yes/No button, just use message.awaitMessageComponentInteraction 2. If inputs result in completely separate functionality like Singleplayer vs Multiplayer, stringify all necessary state and add it to the custom ID, then parse it out in separate interaction handlers
Xeno™
Xeno™OP11mo ago
Hmm i see
Favna
Favna11mo ago
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
Lioness100
Lioness10011mo ago
(#2 mojo
Want results from more Discord servers?
Add your server