title: How to set Discord.js v13 slash commands permissions?
body: <p>I'm following the Discord.js guide to create slash commands for my bot, but I'm stuck at this point here:<br />
  <a href="https://discordjs.guide/interactions/slash-command-permissions.html#user-permissions" rel="nofollow noreferrer">https://discordjs.guide/interactions/slash-command-permissions.html#user-permissions</a></p>
  <p>There are <strong>two things I can't figure out</strong>:</p>
  <ul>
  <li>where I'm supposed to write this block of code I linked above,</li>
  <li>how I'm supposed to find each command's ID</li>
  </ul>
  <p>I'm creating my commands using the <code>SlashCommandBuilder</code> and a <code>deploy-commands.js</code> script as described here:<br />
  <a href="https://discordjs.guide/creating-your-bot/creating-commands.html#command-deployment-script" rel="nofollow noreferrer">https://discordjs.guide/creating-your-bot/creating-commands.html#command-deployment-script</a><br />
  and here:<br />
  <a href="https://discordjs.guide/interactions/registering-slash-commands.html#guild-commands" rel="nofollow noreferrer">https://discordjs.guide/interactions/registering-slash-commands.html#guild-commands</a></p>
  <p>If you can help me on either one of these two things, that would be great!<br />
  Thanks!</p>