How to get Member Object with message

Im trying to get a member of the author's message but i cant find the way. What i want to do is check if member has a role, i delete the role from passing some time since i added it. But without the member object, i cannot check it. What is the way for getting it?
Was this page helpful?