I am using pycord and am trying to have my discord bot look through its dm messages with a particular user to know if it has already sent a specific message to that user or not. Is this possible?

I have found plenty of examples for how to have the discord bot respond to "on_message()" but this is not what i want. I want to get the history of previously sent messages (or None if no dm history). Is this possible?