Preconditions in InteractionHandler

Can I execute a precondition in an Interaction Handler?
Solution:
that's what the parse method is for. Also keep in mind that preconditions are just glorified if checks, you can extract the logic to a seperate function and execute that function in both.
Jump to solution
1 Reply
Solution
Favna
Favna6mo ago
that's what the parse method is for. Also keep in mind that preconditions are just glorified if checks, you can extract the logic to a seperate function and execute that function in both.
Want results from more Discord servers?
Add your server