Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't download members if running with user token
User tokens have been banned from the members endpoint. It's still possible to track some member state by using "author" message fields, but some information (most notably nicknames) will be lost. Since there are no leave messages, it's not possible to record when a member leaves either. Some of these issues can be ameliorated by incorporating data from audit logs (currently not used at all), but access to audit logs is not always given. Nicknames could be snatched from the GUILD_MEMBER_LIST_UPDATE event (currently not used at all, doesn't seem to be implemented in discordgo either) or GUILD_CREATE. WS events may not always contain all members, though (or in case of GUILD_CREATE, not be fired at all), so handling missing entries could be problematic. It would be simpler if we had distinct values for "unknown/no value" and "empty", since then "unknown" values could be ignored when comparing, or updated if the newer entry had more information.
- Loading branch information