Error: Expected token to be set for this request, but none was present

I'm getting this error when I try to execute a permissionOverwrites.set() to a channel. Code: https://sourceb.in/9KWUnqNb77
No description
7 Replies
d.js toolkit
d.js toolkit15mo 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!
souji
souji15mo ago
cannot say more than i already said the client you are trying to make this request with does not have a token set (meaning is not logged in or you overwrite the token set in its rest instance)
Robelo06
Robelo06OP15mo ago
I used interaction.guild.members.me.permissions.has, idk if that's related to the error
souji
souji15mo ago
no
souji
souji15mo ago
this is where the error is from, meaning at the point this (lock js, line 28) executes the rest instance has no token
No description
Robelo06
Robelo06OP15mo ago
No description
Robelo06
Robelo06OP15mo ago
it's the execute function for the interaction Multiple times I'm trying to find a fix rewriting the code I'll let you know asap I think I just found the issue. The host is having some dns errors or similar I exported the code to another host for testing and it worked I'll wait for the host to fix the error then, thanks for your help through ❤️
Want results from more Discord servers?
Add your server