How can i use the ephemeral to PaginatedMessage?

Example code typescript:
const myPaginatedMessage = new PaginatedMessage();
// Once you have an instance of PaginatedMessage you can call various methods on it to add pages to it.
// For more details see each method's documentation.

myPaginatedMessage.addPageEmbed((embed) => {
embed
.setColor('#FF0000')
.setDescription('example description');

return embed;
});

myPaginatedMessage.run(interaction, interaction.user)
const myPaginatedMessage = new PaginatedMessage();
// Once you have an instance of PaginatedMessage you can call various methods on it to add pages to it.
// For more details see each method's documentation.

myPaginatedMessage.addPageEmbed((embed) => {
embed
.setColor('#FF0000')
.setDescription('example description');

return embed;
});

myPaginatedMessage.run(interaction, interaction.user)
Solution:
first deferReply ephermeral then run run method
Jump to solution
2 Replies
Solution
Favna
Favna2y ago
first deferReply ephermeral then run run method
Chessie
Chessie2y ago
await interaction.deferReply({
ephemeral: true
});
await interaction.deferReply({
ephemeral: true
});
Want results from more Discord servers?
Add your server