discord-csharp / MODiX

Discord Bot handling basic moderation needs, soon implements statistics.
MIT License
116 stars 63 forks source link

Improve performance during infraction creation #882

Closed Scott-Caldwell closed 3 years ago

Scott-Caldwell commented 3 years ago

We've been having some performance issues with infraction creation, especially when banning people who aren't in the guild. In particular, we've been getting 500 errors from the GetBansAsync call that GetUserInformationAsync makes, so I think this PR should eliminate those particular 500s entirely (within the context of infraction creation anyway).