TogetherCrew / discord-bot

2 stars 1 forks source link

Handling Bot Data Updates on Guild Join and Rejoin + Fix DeletedAt bug #207

Closed Behzad-rabiei closed 4 months ago

Behzad-rabiei commented 4 months ago

Description: We faced an issue where our bot's database document did not update when it joined a server via OAuth2 because the guildMemberAdd event does not trigger for the bot's own join action. Additionally, documents marked with a deletedAt date were not updated correctly when a member rejoined.

Solution Implemented: To address these issues, we: