title: Making a discord bot to send an image through an embed with discord.py
body: <p>I tried making a discord bot with discord.py that sends a picture when it sees the command &quot;.pic&quot;. When I run the program and try the .pic command, the picture doesn't send and an embed doesn't send. I have a small program that does cooldowns. I do see the cooldown function working even though the embeds and pictures are not there. I also receive no error code in the console
  Here is my code:</p>
  <pre><code>import discord
  import random
  from discord.ext import commands
  
  client = commands.Bot(command_prefix = &quot;.&quot;)
  
  
  @client.event
  async def on_command_error(ctx, error):
      if isinstance(error, commands.errors.CommandOnCooldown):  
          return await ctx.send('The command **{}** is still on cooldown for {:.2f}'.format(ctx.command.name, error.retry_after))
  
  pictures =[&quot;https://i.imgur.com/LAmHP4K.jpg&quot;,&quot;https://i.imgur.com/sXS290O.jpg&quot;,&quot;https://i.imgur.com/Ar7Ihs5.jpg&quot;]
  
  @client.command()
  @commands.cooldown(1, 2, commands.BucketType.user)  
  async def pic(ctx):
    embed = discord.Embed(color = discord.colour.red())
    random_link = random.choice(pictures)
    embed.set_image(url = random_link)
    await ctx.send(embed = embed)
  
  client.run(&quot;TOKEN&quot;)
   
  </code></pre>