Nightorn / Aldebaran

Aldebaran is a cross-platform (Discord and Revolt) multi-purposes bot which offers useful features to DiscordRPG players along with many commands of all kinds, from fun to utilities.
GNU Affero General Public License v3.0
11 stars 4 forks source link

Attempt to fix a database bug #62

Closed Ciborn closed 3 years ago

Ciborn commented 3 years ago

The issue of Aldebaran being unusable in some guilds at start-up is most likely due to a bug in the code that operates as a media between Guild.fetch() and the database; this code is DatabaseProvider.users.selectOneById(). This method uses DatabaseProvider.checkId(), an actually unwanted method that requires fetching the user from the Discord API. This pull request deletes this method.