Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avatar Url not showing in create_batch call #149

Open
fabston opened this issue Feb 7, 2024 · 0 comments
Open

Avatar Url not showing in create_batch call #149

fabston opened this issue Feb 7, 2024 · 0 comments

Comments

@fabston
Copy link

fabston commented Feb 7, 2024

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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant