how to add slash commands to a discord bot

I tried this and it didnt work, I followed a tutorial to make it, I dont know how to code, and I have no idea what version of discord.js Im using
Screenshot_182.jpg
Was this page helpful?