python-discord-webhook
python-discord-webhook copied to clipboard
Unable to override Avatar URL and Name?
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!
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-")