Discord.JS typescript handler Create a .env file Create a .env file in your main path, then add vars in it as it shows in .env.example Register slash commands You can add a GUILD_ID var to your env to register for only 1 guild, don't add the var if you want to register globally.