Why hosting the script on server won't work but locally it works without problem

if (!targetChannelId) { console.error(No target channel mapping found for category: ${category.name}); await interaction.reply({ content: "There was an error processing your request. This category does not have a designated request channel.", ephemeral: true }); setTimeout(async () => { await interaction.deleteReply().catch(console.error); }, 2000); return; } The problem is this await interaction.deleteReply().catch(console.error);. Why does it not delete the reply hosting on the server but then when I used visual studio code to run it locally, everything works perfectly.
2 Replies
d.js toolkit
d.js toolkit4w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?