Deploy Commands

Hi, I'm a new user on discord.js, I would like to know if I can make it so that when the bot joins a server it creates commands in that server (I use slash commands and module.exports) as far as I know this function works calls deploy-commands, but I can't find anything on the internet. Can you help me?
Was this page helpful?