Answer the question
In order to leave comments, you need to log in
What causes an unrecognized token: "{" error?
async def balance(ctx, member: discord.Member = None):
if member is None:
await ctx.send(embed = discord.Embed(
description = f"""Баланс пользователя **{ctx.author}** состовляет **{cursor.execute("SELECT cash FROM users WHERE id = {}").fetchone()[0]} :leaves: **"""))
else:
await ctx.send(embed=discord.Embed(
description= f"""Баланс пользователя **{member}** состовляет **{cursor.execute("SELECT cash FROM users WHERE id = {}").fetchone()[0]} :leaves:**"""))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question