Closed jmpangilinan closed 1 year ago
changed it too
await interaction.deferReply({ ephemeral: ephemeralMessage });
initialMessage = await interaction.editReply({
embeds: [changeFooter()],
components: components()
});
its worked
Oh !
Can you send me the code you used to create this error ? So I can know how to patch the bug.
await pagination({
embeds: embeds, // Array of embeds objects
author: interaction.user,
interaction: interaction,
time: 180000, // 40 seconds
disableButtons: true, // Remove buttons after timeout
fastSkip: false,
pageTravel: false,
buttons: [
{
type: ButtonTypes.previous,
label: 'Previous Page',
style: ButtonStyles.Primary
},
{
type: ButtonTypes.next,
label: 'Next Page',
style: ButtonStyles.Success
}
]
}).catch(function (){});
This work's on guild channels, but when using when DM on bot, it produces the error above.
interaction: interaction,
The interaction has been deferred or replied before ?
interaction: interaction,
The interaction has been deferred or replied before ?
no, interaction not yet deferred or replied
Ok thx you i will fix this
I tried to use in on dm's, it has error