This wraps the TextInputBuilder in getModal with ActionRowBuilder. I think this is better than switching getModal to take ActionRowBuilder as that would decrease readability of source code and cause frequent mistakes (people putting buttons in modals, and/or using ActionRowBuilder larger than 1 child component). If discord adds to modals getModal can be updated to allow the passing in of ActionRowBuilder.
Description
This wraps the
TextInputBuilder
ingetModal
withActionRowBuilder
. I think this is better than switchinggetModal
to takeActionRowBuilder
as that would decrease readability of source code and cause frequent mistakes (people putting buttons in modals, and/or usingActionRowBuilder
larger than 1 child component). If discord adds to modalsgetModal
can be updated to allow the passing in ofActionRowBuilder
.Accompanies nyxx PR #535
Type of change
Checklist:
dart analyze .