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

v3: discord, api, gateway: add per-guild avatars #278

Merged
merged 2 commits into from Sep 28, 2021

Conversation

starshine-sys
Copy link
Contributor

Reference: discord/discord-api-docs#3081

(Had to break the pattern established by User.AvatarURL() and Guild.IconURL() etc, as the member object doesn't include a guild ID)

Copy link
Contributor

@mavolin mavolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. However, could you rename ModifyMe to ModifyCurrentUser to make the distinction between the member and the user method clear.

api/user.go Outdated
// ModifyMe modifies the requester's user account settings.
func (c *Client) ModifyMe(data ModifySelfData) (*discord.User, error) {
// ModifyCurrentUser modifies the requester's user account settings.
func (c *Client) ModifyCurrentUser(data ModifySelfData) (*discord.User, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ModifySelfData should also be renamed to ModifyCurrentUserData.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops, forgot about that!

@diamondburned diamondburned merged commit ca70e0c into diamondburned:v3 Sep 28, 2021
diamondburned pushed a commit that referenced this pull request Nov 4, 2021
* v3: discord, api, gateway: add per-guild avatars

* api: rename ModifyMe to ModifyCurrentUser
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

Successfully merging this pull request may close these issues.

None yet

3 participants