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:Jump to solution
get the referenced message (if one exists), then check the message type to check whether its a reply
2 Replies
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
get the referenced message (if one exists), then check the message type to check whether its a reply