aws-amplify / discord-bot

Discord bot for the AWS Amplify Discord Server
Apache License 2.0
25 stars 20 forks source link

bug: Delete questions on backend/DB that are deleted from Discord server #367

Open cwomack opened 1 year ago

cwomack commented 1 year ago

Describe the bug

When a comment/thread/question is deleted from the discord server by an admin (say due to spamming/trolling/etc), the record is still reflecting on the Dashboard and Channel Health UI. However, when you try and navigate to these URL's via the Questions list... they don't exist on the Discord server.

There's no way to improve the Channel Health (in terms of % answered) or work through the questions list for any of these deleted comments. It seems we need a way to either manually delete these stagnant threads/questions, or have an automated way to exclude them from the UI if they've been deleted.

josefaidt commented 1 year ago

note for fix: we need to set up listeners on the Discord bot client for MessageDelete and ThreadDelete to remove question records