lovvskillz / python-discord-webhook

execute discord webhooks
MIT License
496 stars 73 forks source link

Unable to override Avatar URL and Name? #157

Open ValonVN0 opened 4 months ago

ValonVN0 commented 4 months ago

Hello,

Quite possibly missing something obvious here however I'm using the following code: webhook = DiscordWebhook(url = config["webhook"], content = "", username = "Vayl Test", avatar_url = "https://i.ibb.co/mHgBcY2/icon.png")

(config referring to a file of mine)

Everything works fine except for the fact the username and avatar_url are completely ignored.

Just wondering if I'm perhaps going about this the wrong way? I believe I'm following the docs though it wouldn't be the first time I've missed the obvious!

Thanks!

MrMaou commented 3 months ago

Mine is setup like this and username and avatar are working just fine

Hook = DiscordWebhook(f"{webhook_url}?thread_id=XXXXXXXX", avatar_url="https://i.imgur.com/xxxx.png", username="-User-")