title: Slash commands on nextcord
body: <p>I wanted to add slash commands but unsuccessfully. After hours of documentation reading, examples checking I finally left the idea to try it on my current code. So I've litterally try the example code from the nextcord documentation. I copy/paste the code add the token and the guild ID. But that wasn't more successful.
  My bot have admin permission (8 on the scope), intents are all check on the bot dev pannel and after hours of waiting... Nothing on the slash list. I thought that was a refresh problem on my discord client, so I tested run discord on several devices (pc, mac, phone, ...) but nope.</p>
  <p>As I said I tried the example code with only the server id changed (and also the token correctely edited, the bot himself is running well)</p>
  <pre><code>import nextcord
  
  client = nextcord.Client()
  server = numberfromguildid
  
  
  @client.slash_command(guild_ids=[server])  # limits guilds with this command.
  async def ping(
      interaction: nextcord.Interaction,
  ):
      await interaction.response.send_message(&quot;Pong!&quot;)
  
  
  client.run(&quot;TOKEN&quot;)
  </code></pre>
  <p>If anyone have a solution that would be life saver !</p>