missing access to disable buttons
so i'm getting
> unhandledRejection: DiscordAPIError[50001]: Missing Access
while trying to disable some buttons after a period of time (using pagination). changing pages is fine but when it comes to disabling buttons, it gives me this error. does bot need any special permission to prevent this?
note: i only get this error when bot can't see the channel.2 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.well i guess i just have to catch this error and ignore it, right?
or is there any better way, like checking if bot has access to channel and if not simply don't even try to disable buttons?
ty!
well it's working through the interaction
and that's how the bot is able to edit the embed to change pages
lemme try something and if it didnt work ill show u
oh
you were right
bot was trying to edit the message object that got from
const curPage = await interaction.editReply...
instead of interaction itself
changed to interaction and works fine without permissions
thanks :D
closing