Hello,
I recently started using the library and wanted to use the button interaction API but when I wanted to handle the button I got an error:
Unhandled exception:
type 'Null' is not a subtype of type 'String'
#0 new ButtonInteraction.from (package:mineral/src/api/interactions/button_interaction.dart:37:14)
#1 InteractionCreate._executeButtonInteraction (package:mineral/src/internal/websockets/packets/interaction_create.dart:141:61)
<asynchronous suspension>
So to address this issue I think that we should just change this constructor from
Hello,
We fixed this some time ago, it will be available in a future release. Meanwhile, you can replace payload['message_id'] with payload['message']?['id'].
Hello, I recently started using the library and wanted to use the button interaction API but when I wanted to handle the button I got an error:
So to address this issue I think that we should just change this constructor from
to