discordjs / guide

The official guide for discord.js, created and maintained by core members of its community.
https://discordjs.guide
MIT License
1.57k stars 2.31k forks source link

A new loop for reading commands #1379

Closed Syjalo closed 1 year ago

Syjalo commented 1 year ago

Is your feature request related to a problem? Please describe.

A new loop has recently been added for reading commands in index.js, but not in deploy-commands.js

image

index.js: https://discordjs.guide/creating-your-bot/command-handling.html#loading-command-files deploy-commands.js: https://discordjs.guide/creating-your-bot/command-deployment.html#guild-commands

I suggest to add it in deploy-commands.js too.

Describe the solution you'd like

Add a new loop

Describe alternatives you've considered

No response

Additional notes

No response

Idris1401 commented 1 year ago

I think it's a duplicate of #1362

Syjalo commented 1 year ago

Not a duplicate. I'm about the warning in the loop, but not using fs.

almostSouji commented 1 year ago

@monbrey is this covered/in scope of #1427 ?