So I'm writing a bot with discord.py and while writing an embedded ping command I was encountering some strange errors I haven't found replications of online.

My imports:

```py
import discord
from discord.ext import commands
from discord.ext.commands import Bot
import asyncio
import time

```

It's having trouble with this part:

```py
embed = discord.Embed(colour="0xff9999") 
@client.event
async def on_message(message):
    channel = message.channel
    authorID = message.author.id
    if message.content.upper().startswith("T.PING"):
        t1 = time.perf_counter()
        await client.send_typing(channel)
        t2 = time.perf_counter()
        embed.add_field(name="Ping", value=":ping_pong: | <@" + authorID + "> Ponged in {}ms!".format(round((t2-t1)*1000)), inline=True)
        embed.set_author(name=client.user.name, icon=Embed.Empty, icon_url=client.user.avatar_url)
        await client.send_message(channel, embed=embed)

```

When performing my t.ping I get this NameError in the console:

```
Ignoring exception in on_message
Traceback (most recent call last):
    File "C:\Users\Robin Riezebos\AppData\Local\Programs\Python\Python36\lib\site-packages\discord\client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
    File "C:\Storage\Desktop\Tapebox.py\Tapebox.py", line 32, in on_message
    embed.set_author(name=client.user.name, icon=Embed.Empty, icon_url=client.user.avatar_url)
NameError: name 'Embed' is not defined

```

I would appreciate some help and an example of how to fix this...

I'm not using a `@client.command` make-up but rather a `client.event` make-up for my commands which changes some aspects but `embed.set_author` should still work.

Edit: added imports list, added rest of if statement in `@client.event`