Skip to content

Avatar Url not showing in create_batch call #149

@fabston

Description

@fabston

I am using the code below, but sadly the avatar_url isn't showing in both messages, as you can see in the screenshot below. Any idea how to fix that?

img

from discord_webhook import DiscordWebhook, DiscordEmbed

embed = DiscordEmbed(title="Your Title", description="Lorem ipsum dolor sit", color="03b2f8")

username = "Elon Musk"
avatar_url = "https://pbs.twimg.com/profile_images/1683325380441128960/yRsRRjGO_400x400.jpg"

webhook_1, webhook_2 = DiscordWebhook.create_batch(
    urls=webhook_urls,
    content="Test 123",
    username=username,
    avatar_url=avatar_url
)

webhook_1.add_embed(embed)
webhook_1.execute()

webhook_2.add_embed(embed)
webhook_2.execute()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions