I want to show a Leaderboard (Place, Name, Level) in an embed TextBox. The thing is, that I HAVE TO put name='smth' in the embed.add_field function, otherwise it wont work.
But if I do so, it looks like this:
How can I delete these Titles?
My current code is
number = 0
for x in character_list:
if number == 0:
embed.add_field(name='Platz', value=x[0], inline=True)
embed.add_field(name='Name', value=x[1], inline=True)
embed.add_field(name='Level', value=x[2], inline=True)
number = 1
else:
embed.add_field(name='', value=x[0], inline=True)
embed.add_field(name='', value=x[1], inline=True)
embed.add_field(name='', value=x[2], inline=True)
return await client.say(embed=embed)
I also tried using a fake space from utf-8 but then it looks ugly because instead of the white titles, there is just a space. I want to remove the line if its empty
There's a zero-width whitespace character, \u200b that, if you set the field header text to, the embed will not render the field header.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With