andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
496 stars 70 forks source link

Change Guild.Member to use Member.UserID instead of Member.User.ID to… #379

Closed Lappy closed 3 years ago

Lappy commented 3 years ago

… allow cache usage

Description

Due to the User on cached Member objects being nil at the time this check is done it results in a nil pointer dereference, this change allows it to work as intended.

Type of change

Checklist: