Closed MaksiRose closed 1 year ago
This is the code for this. The problem is first of all that the reply isn't caught so the ID is not the ID of the message. This happened because it's assumed that this is a followUp. Either followUps aren't guaranteed to be full messages, or this isn't always a followUp. https://github.com/MaksiRose/paw-and-paper/blob/e3df0b80c35742c7ac3fce21c822d1de08d7c4a4/src/utils/checkValidity.ts#L83-L99
This could be solved in several ways, either by deleting '@original' in case the id is from an InteractionResponse
(although this requires making sure that followUps aren't InteractionResponses ever), or fetching the reply. There should also be backup code, one that tries to fetch and delete the message normally, and one for that that just silently returns in case the message doesn't exist.
Update - This shouldn't always be a followUp but always a reply. So it should try to do '@/original'
Created by: FlockInATrenchcoat#5081 (809548732969386024)
Additional conversation: