Shimmermare / InviteRoles

A Discord bot to automatically give roles to users who joined through specific invite.
MIT License
18 stars 9 forks source link

Only put things in deltaUsesMap if uses > 0 #1

Closed chug2k closed 4 years ago

chug2k commented 4 years ago

There's a bug where having multiple active invites makes the bot always complain about 2 people joining at the same time.

That's because the code checks deltaUsesMap.size(), and if that's greater than 1, it throws the 2 people joined at the same time error. But right now the delta map is full of unused invites.

Shimmermare commented 4 years ago

Thank you!