I'm a newbie to python and Stackoverflow in general so please let me know if this is out of place.
Question: How do I create an embed in discord with discord.py without having to add a sub-title to the embed?
For example, here is a simplified version of my embed function:
def test_embed():
embedPlacehold = discord.Embed(title='title', color=0xffbf00)
embedPlacehold.add_field(name='sub-title', value='test', inline=False)
return embedPlacehold
The section I want to remove is from line 3, name='subtitle
.
However, the .add_field
function from discord.py needs to take that as a parameter, and the name
cannot be set to an empty String.
Right now I am searching for alternative functions that do not require a subtitle to be set. I know other bots programmed from JavaScript are able to send embeds without sub-titles so I'm quite positive that there are ways to accomplish this in python too.
I've gone through a lot of the sites and still couldn't find the answer to this, so I'd appreciate any help possible!
name=Name
– jjoy