arikawa
arikawa copied to clipboard
refactor(cmdroute)!: change data to resp
changes cmdroute
to work with *api.InteractionResponse
instead of *api.InteractionResponseData
this would allow to return modals via command interactions done through cmdroute
this PR is a breaking change
I think it would be better if we introduce a new non-breaking API that apps can use to implement this when they need to instead of breaking the current API.
I'll have to look into this soon.
to make it non-breaking, I believe one has to modify this place: https://github.com/diamondburned/arikawa/blob/181dcb1bdd007d4d8f42c744278f8f59265bb2b4/api/cmdroute/router.go#L123-L127
and introduce a new type of handler which is used there then