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

Unable to override Avatar URL and Name? #157

Open
vaylvn opened this issue Jun 30, 2024 · 1 comment
Open

Unable to override Avatar URL and Name? #157

vaylvn opened this issue Jun 30, 2024 · 1 comment

Comments

@vaylvn
Copy link

vaylvn commented Jun 30, 2024

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
Copy link

MrMaou commented Aug 2, 2024

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

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

2 participants