curtisf / logger

Loggerbot version 3, the Discord bot serving nearly 24 million users.
https://logger.bot
GNU General Public License v3.0
374 stars 131 forks source link

Wrong "Invite Used" - Logger Takes Most Recent Invite and Applies it as the Invite Used #11

Closed MarkLaBarr closed 3 years ago

MarkLaBarr commented 3 years ago

Logger uses the most recent invite created as the "Invite Used" when creating the info card for a new member. Oftentimes, this is not correct.

curtisf commented 3 years ago

Logger's invite tracking logic was made before invite creation and deletion events were released. As of now, it will not update stored invites as they are created or deleted, and instead solely inside of guildMemberRemove. As you saw, this does introduce cases where the invite displayed isn't always correct. The plan is to fix this with the release for intents when I get to it.

curtisf commented 3 years ago

The reworked invite system is out in production, which hopefully fixes this problem.