How would I utilize the new InteractionContext type?
I have this code currently:
viewNoteResponse
is an extension in both PublicInteractionContext and EphemeralInteractionContext. I assume I would change the receiver to an InteractionContext and then remove the duplicate, but it gives me a type mismatch error when trying to use it where it was being used previously. what should I do to use this new type?10 Replies
what's the full error?
hmm, what receiver are you using on your function?
Solution
it should probably be
InteractionContext<*, *, *, *>
rightoh that just works
thanks for the guidance 🙏
no worries, I'll set up a typealias for you
:O
pushed
GenericInteractionContext
- should be published in about 15 minsthank you!
yw o7