build method

  1. @override
RawApiMap build([
  1. AllowedMentions? defaultAllowedMentions
])

Implementation

@override
RawApiMap build([AllowedMentions? defaultAllowedMentions]) => {
      ...super.build(allowedMentions),
      if (componentRows != null)
        "components": [
          for (final row in componentRows!)
            {
              "type": ComponentType.row.value,
              "components": [for (final component in row) component.build()]
            }
        ]
    };