Reputation: 220
I'm making a bot with discord.py and I want to send the mentioned user's avatar with a glass filter.. This is my code
import aiohttp
import json
import requests
bot = commands.Bot(command_prefix=']')
#glass filter
@bot.command()
async def glass (ctx,*,person:discord.Member =None) :
member = ctx.message.author
person: discord.Member
embed = discord.Embed ()
mentiondp = member.avatar_url
embed.set_image (url = f'https://some-random-api.ml/canvas/glass?avatar={mentiondp}' )
await ctx.send (embed=embed)
But when I tried ]glass @DankMemer It sends a blank embed..
Please Help me!
Upvotes: 0
Views: 626
Reputation:
Currently Discord embeds are down. You'll need to wait a bit until they fix it. https://discordstatus.com
Upvotes: 1