title: Discord.py | Slash commands aren’t working
body: <p>I’m trying to have my discord bot (using discord.py) support slash commands like this picture shown.
  <a href="https://i.stack.imgur.com/572AU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/572AU.png" alt="enter image description here" /></a></p>
  <p>I already have installed <code>discord-py-slash-command</code>, put the code to import it <code>from discord-py-slash-command import SlashCommands</code> and invited my bot using the <code>application.commands</code>. I have this code shown. (I’m trying to add the slash to the ping command)</p>
  <pre><code>import discord
  from discord.ext import Commands
  from discord-py-slash-command import SlashCommands
  
  client = commands.Bot(commands_prefix=“.”)
  
  @client.commands(description=“Ping”)
  async def ping(ctx):
       await ctx.send(“Pong!”)
  
  client.run(“MY_TOKEN”)
  </code></pre>
  <p>I also tried <code>@client.commands.slash</code></p>
  <p>I’m new to this slash thing. Help?</p>