mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-31 17:43:04 -06:00
chore: add todo for other component types
This commit is contained in:
parent
a54e011ad8
commit
09f9f387d7
|
|
@ -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()
|
||||
?? [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue