-
Notifications
You must be signed in to change notification settings - Fork 802
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
Add Guild Member avatar #1077
Add Guild Member avatar #1077
Conversation
I see this is a duplicate of #985, but the original author seems to be inactive after being asked for some changes w.r.t #985 (comment) I saw other |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me. But it might require a couple of changes.
Tip: you can resolve conversations when they're outdated or finished. Anyways, thank you for the PR. 👍 |
It's ready to be merged, but please note the conflict. |
* add avatar field on Member struct * add endpoints for guild avatars * add avatarURL util function for *User.AvatarURL and *Member.AvatarURL * set GuildID on after GuildMember request
474ff8b
to
1fb67c8
Compare
@FedorLap2006 I have rebased my changes with latest |
Thanks for the contribution! |
Fixes #965
This PR adds support for the Guild-specific member avatar, if any.
To follow the same pattern as
*User.AvatarURL
, also add the same method for*Member.AvatarURL
, and create an util methodavatarURL
to handle both.Also, set the
*Member.GuildID
after theGuildMember
requests, as this is not included with the returned object.I have tested these changes with my own bot