How do I get target message

How do I check if message is a reply and get the target message?
5 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
GeekCorner
GeekCorner2y ago
So this is a reply, how do I get the targeted message, and how do I know if reply ping is enabled?
d.js docs
d.js docs2y ago
Documentation suggestion for @GeekCornerD:method Message#fetchReference() Fetches the Message this crosspost/reply/pin-add references, if available to the client
Squid
Squid2y ago
If the ping was enabled or not, you probably have to check the reply's .mentions.users and see if it has() the author of the referenced message
GeekCorner
GeekCorner2y ago
Oh it is includes in mentions?