Когда пишу команду, её просто не выводит. Хз(( Вот код:
@client.command(aliases=['карточка', 'карта', 'фото'])
async def __card(ctx):
img = Image.new('RGBA', (400, 200), '#9ad4f5')
url = str(ctx.author.avatar_url)[:-10]
response = requests.get(url, stream = True)
response = Image.open(io.BytesIO(response.content))
response = response.convert('RGBA')
response = response.resize((100, 100), Image.ANTIALIAS)
img.paste(response, (15, 15, 115, 115))
idraw = ImageDraw.Draw(img)
name = ctx.author.name
tag = ctx.author.discriminator
headline = ImageFont.truetype('arial.ttf', size = 20)
undertext = ImageFont.truetype('arial.ttf', size = 12)
idraw.text((145, 15), f'{name}#{tag}', font = headline)
idraw.text((145, 50), f'{ctx.author.id}', font = undertext)
img.save('card.png')
await ctx.send(file = discord.File(fp = 'user_card.png'))