modal method
Responds to this by an ModalBuilder
Example :
Modal modal = Modal(customId: 'modal', label: 'My modal')
.addInput(customId: 'my_text', label: 'First text')
.addParagraph(customId: 'my_paragraph', label: 'Second text');
await interaction.modal(modal);
Implementation
Future<void> modal (ModalBuilder modal) async {
Http http = ioc.singleton(Service.http);
await http.post(url: "/interactions/$id/$token/callback", payload: {
'type': InteractionCallbackType.modal.value,
'data': modal.toJson(),
});
}