python-discord-webhook
python-discord-webhook copied to clipboard
AttributeError: 'DiscordEmbed' object has no attribute 'add_field'
AttributeError: 'DiscordEmbed' object has no attribute 'add_field'
This doesn't allow the add_field feature for the discord embeds.
Hey,
The method name is add_embed_field, not add_field.
Example code:
from discord_webhook import DiscordEmbed
embed = DiscordEmbed()
embed.add_embed_field(name='My field', value='Hello world')
I hope this helps.