chore: add todo for other component types

This commit is contained in:
Solareon 2026-02-27 09:10:56 +01:00
parent a54e011ad8
commit 09f9f387d7

View file

@ -22,7 +22,7 @@ public partial record ActionRowComponent
var components =
json.GetPropertyOrNull("components")
?.EnumerateArrayOrNull()
?.Where(c => c.GetPropertyOrNull("type")?.GetInt32OrNull() == 2)
?.Where(c => c.GetPropertyOrNull("type")?.GetInt32OrNull() == 2) // TODO: support other component types (selects)
?.Select(ButtonComponent.Parse)
.ToArray()
?? [];