Reply to a message as bot

This is less a question of help and more of curiosity,

In Discord JS I know you can reply to the interaction using "
interaction.reply
" instead of "
interaction.channel.send
"
I got curious and have decided to ask, can you (using a message id gained from the slash command) reply to a specific message in the same channel?

As an example,

You have a command that just repeats a message given in a slash command (
/say "message"
)

Could you then create the same command, but with an extra option to input a message id which the bot would then use to reply to said message,
(
/say "message" "messageid"
) using something like "
messageid.reply
"?

I tried to tinker around with it, but I don't know all the constraints of Discord JS and couldn't find a solution and google wasn't much help either.
Sorry if this is a dumb question.
Was this page helpful?