one line fucked everything up

This commit is contained in:
amy 2025-05-27 14:51:05 +03:30
parent 79740a8639
commit 29cfc2ab10
No known key found for this signature in database

View file

@ -68,7 +68,6 @@ export default class PingCommand extends Command {
)
];
const meow = Object.keys(songlink.linksByPlatform)
let message = ""
const nya: ActionRowBuilder<ButtonBuilder>[] = [];
let currentRow = new ActionRowBuilder<ButtonBuilder>();
@ -85,10 +84,10 @@ export default class PingCommand extends Command {
.setStyle(ButtonStyle.Link)
);
}
components[0].addActionRowComponents(nya)
if (currentRow.components.length > 0) {
nya.push(currentRow);
}
components[0].addActionRowComponents(nya)
await interaction.followUp({
components: components,
flags: [MessageFlags.IsComponentsV2],
@ -102,7 +101,7 @@ export default class PingCommand extends Command {
.setFooter({
text: "song.link proxying was turned off or failed - amy jr",
});
await interaction.followUp({embeds:[embedfallback]})
}
}