python-discord-webhook icon indicating copy to clipboard operation
python-discord-webhook copied to clipboard

Unable to override Avatar URL and Name?

Open vaylvn opened this issue 1 year ago • 1 comments

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!

vaylvn avatar Jun 30 '24 23:06 vaylvn

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-")

MrMaou avatar Aug 02 '24 10:08 MrMaou