Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #379 from Lappy/develop
Browse files Browse the repository at this point in the history
Change Guild.Member to use Member.UserID instead of Member.User.ID to…
  • Loading branch information
andersfylling authored Feb 6, 2021
2 parents 58ce527 + f6aa86d commit 00c8545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guild.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func (g *Guild) AddRole(role *Role) error {
// Member return a member by his/her userid
func (g *Guild) Member(id Snowflake) (*Member, error) {
for _, member := range g.Members {
if member.User.ID == id {
if member.UserID == id {
return member, nil
}
}
Expand Down

0 comments on commit 00c8545

Please sign in to comment.