CS5500-S-2023 / team-bear

team-bear created by GitHub Classroom
0 stars 0 forks source link

When bot leaves the guild, information from that guild should be deleted #114

Closed lenad90 closed 1 year ago

lenad90 commented 1 year ago

User story: As a discord user, I want all information from our database to be removed once the bot is removed from our server so that old information will not populate if I decide to re-add the bot, which will ensure that the server will be treated as new and I don’t need to manually delete old data.

When a bot is kicked from the server, an GuildLeaveEvent should occur where it removes all user (if user is no longer in guild), listings, and guild information on the database.

UML of event: https://lucid.app/lucidchart/dc528c3f-38aa-430b-a4a1-43a6233de935/edit?viewport_loc=-277%2C-1058%2C2374%2C1140%2C0_0&invitationId=inv_a5d28f1a-4b25-4231-88f4-f91ffcf4d38d