Answer the question
In order to leave comments, you need to log in
How to infer that {} values are taken into account?
Hello!
I have a database that stores embed text for commands. (sqlite3)
And for example, if the database contains the text `Hi, {member.mention}`, which, when sent, does not take into account the value of {member.mention} and simply writes it as it is, but I wanted the member to ping, that is, it was sent as `Hi, user_whose_registration_in_the_team`. Code below:
@client.command()
async def hello(ctx, member : discord.Member):
embed_result = check_embed(text_embed, name, guild_id) # получаю ембед
embed = discord.Embed(color = 0x696969)
embed.description = f'{embed_result}' # здесь по идеи должен вставляться {member.mention}
await ctx.send(embed = embed)
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