Skip to content

Commit

Permalink
wrap TextInputBuilders with ActionRowBuilders in getModal (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 authored Sep 20, 2023
1 parent f48814e commit e3234a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/util/mixins.dart
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ mixin InteractionRespondMixin
ModalBuilder builder = ModalBuilder(
customId: ComponentId.generate().toString(),
title: title,
components: components,
components: components.map((textInput) => ActionRowBuilder(components: [textInput])).toList(),
);

await (interaction as ModalResponse).respondModal(builder);
Expand Down

0 comments on commit e3234a1

Please sign in to comment.