Skip to content

Populate GuildID on GuildMembers (similar to GuildMember) #1675

@bamo

Description

@bamo

Currently, GuildMember sets member.GuildID, but GuildMembers does not do the same, leaving it empty.

This results in confusing behavior where, if the caller does not set GuildID themselves, calls like member.AvatarURL("") can return invalid URLs.

I don't think there should be any adverse effect to doing so - any performance implications of setting one field on each member struct should be negligible when compared with the JSON unmarshal that's already happening there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions