Just getting back into discord bots

Recently just returned to going back to code my discord bot and notice that when i run the file i get "punnycode" module is deprecated. How do i fix this? Ive updated all dependencies to the current versions and still shows up. Tried to google it and nothing gives me a result to fix this Versions: Discord.js: 14.15.3 Node: 22.7.0
No description
23 Replies
d.js toolkit
d.js toolkit3w 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!
Deimoss
Deimoss3w ago
you can use npm ls punycode to see which package is using it and either replace it or just continue using it, ignoring the warning however i don't think it's related to discord.js
MrFangs
MrFangs3w ago
what would i use if i replaced punycode? or can i just use punycode for ever?
Deimoss
Deimoss3w ago
oh you're using it directly?
MrFangs
MrFangs3w ago
no i run the command above and got this
No description
Deimoss
Deimoss3w ago
doesn't look like unirest will be updated any time soon, as it hasn't been for 5 years, why not just use axios or the native node fetch instead?
MrFangs
MrFangs3w ago
i dont know how to use them just saw unirest and learned that
Deimoss
Deimoss3w ago
unirest looks pretty similar to axios, i'm sure you'll be fine there's not much to learn, it's just to make http requests anyway
MrFangs
MrFangs3w ago
truuuuuu ok
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Deimoss
Deimoss3w ago
i mean that's not really a long term solution
MrFangs
MrFangs3w ago
also got another question if u dont mind trying to figure this out it pops up when i try to run it, think it might be cause im missing sommething ill just learn axios since uni is starting to go out dated kinda
MrFangs
MrFangs3w ago
it runs all the command files then shows this imm not sure what im looking at
No description
MrFangs
MrFangs3w ago
imm thinking either a permission i forgot or something i didnt download
Deimoss
Deimoss3w ago
can you share the code where you're doing this rest request?
Want results from more Discord servers?
Add your server