I am mapping all the embed in server
const list = new MessageEmbed()
.setTitle('op')
.addFields((await interaction.guild.fetchWebhooks()).map((data) => {
return {
name: `${data.name}`,
value: `Channel: <#${data.channelId}>\nId: ${data.id}`,
inline: false
}
}
));
interaction.reply({ embeds: [list] });
But i want that it send only 10 webhook details in 1st page then rest in others.
I am using discord.js v13 and buttons
You'll have to create button interaction component collector which is pretty complex. I suggest you use a npm package that will handle that for you, you just give the package the interaction and he'll do the rest for you !