Getting slash commands

const commandsColl = await client.application.commands.fetch();

I use this to get all the commands and then I try to iterate through the collection with
    for (const command in commandsColl) {
      //and i do something here
      console.log(command);
    }

But the terminal doesnt say anything so the for loop never started
Was this page helpful?