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) const meow = Object.keys(songlink.linksByPlatform)
let message = ""
const nya: ActionRowBuilder<ButtonBuilder>[] = []; const nya: ActionRowBuilder<ButtonBuilder>[] = [];
let currentRow = new ActionRowBuilder<ButtonBuilder>(); let currentRow = new ActionRowBuilder<ButtonBuilder>();
@ -85,10 +84,10 @@ export default class PingCommand extends Command {
.setStyle(ButtonStyle.Link) .setStyle(ButtonStyle.Link)
); );
} }
components[0].addActionRowComponents(nya)
if (currentRow.components.length > 0) { if (currentRow.components.length > 0) {
nya.push(currentRow); nya.push(currentRow);
} }
components[0].addActionRowComponents(nya)
await interaction.followUp({ await interaction.followUp({
components: components, components: components,
flags: [MessageFlags.IsComponentsV2], flags: [MessageFlags.IsComponentsV2],