@commands.command(name='urban', description='Get a urban defenition of a query', brief='search urban')
async def urban(self, ctx, *query: str):
    url = f"http://api.urbandictionary.com/v0/define?term={'+'.join(query)}"
    (result, error) = (await get_json(url))
    if error:
        (await ctx.send(error))
        return
    if result['list']:
        top_def = result['list'][0]
        embed = discord.Embed(title=f"Definition of {top_def['word']}", url=top_def['permalink'], description=top_def['definition'], color=self.bot.embed_color)
        embed.set_thumbnail(url='http://campbelllawobserver.com/wp-content/uploads/2014/03/Urban-Dictionary-e1372286057646.png')
        embed.add_field(name='Example', value=top_def['example'], inline=False)
        embed.add_field(name=':thumbsup:', value=top_def['thumbs_up'], inline=True)
        embed.add_field(name=':thumbsdown:', value=top_def['thumbs_down'], inline=True)
        embed.set_footer(text=f"Submited by {top_def['author']}")
        (await ctx.send(embed=embed))
    else:
        (await ctx.send('Your query gave no results.'))
@commands.command(name='urban', description='Get a urban defenition of a query', brief='search urban')
async def urban(self, ctx, *query: str):
    url = f"http://api.urbandictionary.com/v0/define?term={'+'.join(query)}"
    (result, error) = (await get_json(url))
    if error:
        (await ctx.send(error))
        return
    if result['list']:
        top_def = result['list'][0]
        embed = discord.Embed(title=f"Definition of {top_def['word']}", url=top_def['permalink'], description=top_def['definition'], color=self.bot.embed_color)
        embed.set_thumbnail(url='http://campbelllawobserver.com/wp-content/uploads/2014/03/Urban-Dictionary-e1372286057646.png')
        embed.add_field(name='Example', value=top_def['example'], inline=False)
        embed.add_field(name=':thumbsup:', value=top_def['thumbs_up'], inline=True)
        embed.add_field(name=':thumbsdown:', value=top_def['thumbs_down'], inline=True)
        embed.set_footer(text=f"Submited by {top_def['author']}")
        (await ctx.send(embed=embed))
    else:
        (await ctx.send('Your query gave no results.'))