discord.py
2
Вклад в тег
img.save('card.png')
await ctx.send(file = discord.File(fp = 'user_card.png'))
img.save('card.png')
await ctx.send(file = discord.File(fp = 'card.png'))
@bot.command()
async def mention_role(ctx, role_name):
server = ctx.guild
role = discord.utils.get(server.roles, name=role_name)
await ctx.send(role.mention)