Detect when new message is a reply to another one

Hey! Is it possible to detect when a message is a reply? I have a schedules system that automatically replies to you when you tag a member that's not currently available. I'd like the bot to differentiate between explicit mentions (i.e. @member) and message replies, which technically include a mention too. Thanks!
Solution:
get the referenced message (if one exists), then check the message type to check whether its a reply
Jump to solution
2 Replies
Spinel
Spinel13mo ago
Documentation suggestion for @Lautaro Segura: <::898645160248897586> Message#reference Message reference data <::898645160244674560> Message#fetchReference() Fetches the Message this crosspost/reply/pin-add references, if available to the client
Solution
Seren_Modz 21
Seren_Modz 2113mo ago
get the referenced message (if one exists), then check the message type to check whether its a reply
Want results from more Discord servers?
Add your server