in src/utils/discord.ts [52:66]
export function actionsFromRow(
row: ActionRow<MessageActionRowComponent>
): Action[] {
var actions = [];
for (const component of row.components) {
const customId = component.customId;
if (customId) {
const action = Actions.find((c) => c.isAction(customId));
if (action) {
actions.push(action);
}
}
}
return actions;
}