@client.command(aliases = ["$"])
async def balance(ctx,member:discord.Member = None):
if member == ctx.author or member == None:
with open('economy.json','r') as f:
money = json.load(f)
emb = discord.Embed(description=f'Баланс пользователя **{ctx.author.mention}** - {money[str(ctx.author.id)]["Money"]} ',colour = 0x2f3236)
await ctx.send(embed= emb)
else:
with open('economy.json','r') as f:
money = json.load(f)
emb = discord.Embed(description=f'Баланс пользователя **{member.mention}** - {money[str(member.id)]["Money"]} ',colour = 0x2f3236)
await ctx.send(embed= emb)