amadea-system / GabbyGums

Gabby Gums is fully featured discord logging bot that is able to ignore all the extraneous deletes that PluralKit causes from proxied messages and log additional PK related detail.
Apache License 2.0
2 stars 4 forks source link

Invites that expire after 1 use are not properly detected. #13

Closed amadea-system closed 4 years ago

amadea-system commented 5 years ago

When an Invites that expires after 1 use is used before it has been added to the invites DB (Which is very likely for an invite that expires after 1 use) it is deleted from discord before GabbyGums is able to get it using guild.invites(). I think that this can be remedied by searching through the audit log as well either every time a user joins or possibly only in the cases when we can't find the invite use from guild.invites().

amadea-system commented 4 years ago

This seems to have been fixed by https://github.com/amadea-system/GabbyGums/commit/ddd1a48de7fc09a3fe2f652a70b1ba4388d00aa2, which implemented the new Invite Create and Invite Delete events.